testing
This commit is contained in:
parent
963151c7ee
commit
637dcc05a2
1 changed files with 12 additions and 9 deletions
21
test.sh
21
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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue