Update utils.py

fix indent

Signed-off-by: Rai <58925163+rai68@users.noreply.github.com>
This commit is contained in:
Rai
2024-01-11 22:18:57 +10:00
committed by GitHub
parent c650188e1b
commit 72e22475e3

View File

@ -165,8 +165,7 @@ def load_config(args):
ref_defaults_data = None ref_defaults_data = None
# check for a config.yml file on /boot/firmware # check for a config.yml file on /boot/firmware
for boot_conf in ['/boot/config.yml', '/boot/firmware/config.yml', for boot_conf in ['/boot/config.yml', '/boot/firmware/config.yml', '/boot/config.toml', '/boot/firmware/config.toml']:
'/boot/config.toml', '/boot/firmware/config.toml']:
if os.path.exists(boot_conf): if os.path.exists(boot_conf):
if os.path.exists(args.user_config): if os.path.exists(args.user_config):
# if /etc/pwnagotchi/config.toml already exists we just merge the new config # if /etc/pwnagotchi/config.toml already exists we just merge the new config