From 637dcc05a2b4b6de8917051c4dbd9952dc9a826f Mon Sep 17 00:00:00 2001 From: pika Date: Thu, 22 May 2025 13:06:51 +0200 Subject: [PATCH] testing --- test.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/test.sh b/test.sh index 35545c0..2b6f69a 100755 --- a/test.sh +++ b/test.sh @@ -6,7 +6,7 @@ command_exists() { } source-script() { - local url="https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh" + local url="$1" local import="$(mktemp)" if command_exists curl; then curl -fsSL $url -o $import @@ -30,18 +30,18 @@ spin-get-dependencies() { # │ You can define dependencies for various linux distros here. It will │ # │ automagically be pulled via the $pkgArray[$distro] variable │ # ╰─────────────────────────────────────────────────────────────────────────╯ - depsDebian=() - depsFedora=() - depsOpensuse=() - depsArch=() - depsAlpine=() + depsDebian=(bash zsh curl git neofetch waybar wlogout) + depsFedora=(bash zsh curl git neofetch waybar wlogout) + depsOpensuse=(bash zsh curl git neofetch waybar wlogout) + depsArch=(bash zsh curl git neofetch waybar wlogout) + depsAlpine=(bash zsh curl git neofetch waybar wlogout) declare -A deplist local deplist=() declare -A deps=( [debian]="depsDebian" - [ubuntu]="depsUbuntu" + [ubuntu]="depsDebian" [fedora]="depsFedora" [arch]="depsArch" [alpine]="depsAlpine" @@ -58,7 +58,7 @@ spin-get-dependencies() { debian | ubuntu | arch | fedora | alpine | opensuse) for pkg in "${pkgArray[@]}"; do if ! command_exists $pkg; then - deplist+=$pkg + deplist+="$pkg " fi done @@ -118,7 +118,10 @@ main() { } -if source-script; then +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 + +if source-script $pika && source-script $beddu; then # ─< package variable >─────────────────────────────────────────────────────────────────── unset PACKAGE