From 8cb2f86571802edf663eb3bd284cf644413cf9fb Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 31 Dec 2024 02:19:05 +0100 Subject: [PATCH] Fix incorrect `isProgramEnabled` syntax --- scripts/Arch/OS/setup.fish | 2 +- scripts/Arch/lib/deploy.fish | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/Arch/OS/setup.fish b/scripts/Arch/OS/setup.fish index bce53d04..043f6b69 100755 --- a/scripts/Arch/OS/setup.fish +++ b/scripts/Arch/OS/setup.fish @@ -64,7 +64,7 @@ begin and genfstab -U "$mountDir" >>"$mountDir/etc/fstab" - and if isProgramEnabled "networkmanager" + and if isProgramEnabled --name networkmanager and pacstrap -K "$mountDir" networkmanager arch-chroot "$mountDir" systemctl enable NetworkManager end diff --git a/scripts/Arch/lib/deploy.fish b/scripts/Arch/lib/deploy.fish index 73dddc23..3205e557 100644 --- a/scripts/Arch/lib/deploy.fish +++ b/scripts/Arch/lib/deploy.fish @@ -149,7 +149,7 @@ function deploySoftware -d "Deploys a the specified software action" -a action and yayinst propertree-git # mac .plist config file editor end - and if isProgramEnabled thunderbird && $isInstall + and if isProgramEnabled --name thunderbird && $isInstall yayinst thunderbird end @@ -205,7 +205,7 @@ function deploySoftware -d "Deploys a the specified software action" -a action audius-client-bin end - and if isProgramEnabled nextcloud + and if isProgramEnabled --name nextcloud yayinst nextcloud-client end end @@ -225,7 +225,7 @@ function deploySoftware -d "Deploys a the specified software action" -a action end end - and if isProgramEnabled discord + and if isProgramEnabled --name discord yayinst vesktop-bin end @@ -285,11 +285,11 @@ function deploySoftware -d "Deploys a the specified software action" -a action end end - and if isProgramEnabled "osu!lazer" + and if isProgramEnabled --name "osu!lazer" yayinst osu-lazer-bin end - and if isProgramEnabled retroarch + and if isProgramEnabled --name retroarch yayinst libretro end end