diff --git a/test.sh b/test.sh index 7b8a896..1ed3264 100755 --- a/test.sh +++ b/test.sh @@ -36,7 +36,7 @@ spin-get-dependencies() { depsDebian=(git neofetch waybar wlogout g++ build-essentials) depsFedora=(git neofetch waybar wlogout) depsOpensuse=(git neofetch waybar wlogout) - depsArch=(git neofetch waybar wlogout firefox-esr base-devel) + depsArch=(git neofetch waybar wlogout base-devel) depsAlpine=(git neofetch waybar wlogout) # declare -A deplist @@ -183,10 +183,17 @@ main() { check "Complete!" } -beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh -pika=https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh +setup-env() { + local beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh + local pika=https://git.k4li.de/scripts/imports/raw/branch/main/distros.sh -if source-script $pika && source-script $beddu; then + if ! command_exists pen && ! command_exists spin; then + source-script $pika + source-script $beddu + fi +} + +if setup-env; then # ─< package variable >─────────────────────────────────────────────────────────────────── unset PACKAGE