testing
This commit is contained in:
parent
4cf5726882
commit
adca0098ed
1 changed files with 16 additions and 4 deletions
20
test.sh
20
test.sh
|
@ -111,15 +111,26 @@ spin-installation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local err
|
local err out
|
||||||
|
|
||||||
if ! spin-get-dependencies; then
|
if ! spin-get-dependencies; then
|
||||||
throw "Dependencies could not get generated!"
|
throw "Dependencies could not get generated!"
|
||||||
else
|
else
|
||||||
check "Dependency list generated!"
|
check "Dependency list generated!"
|
||||||
pen red bold "There are ${#pkglist[@]} items to install.."
|
pen red bold "There are ${#deplist[@]} items to install.."
|
||||||
for p in "${pkglist[@]}"; do
|
# local pkgs="$@"
|
||||||
echo "Package: $p"
|
|
||||||
|
for pkg in "${deplist[@]}"; do
|
||||||
|
spin bold yellow "Installing $pkg"
|
||||||
|
if run --err err --out out pkg-install "$pkg"; then
|
||||||
|
check "Installed $pkg"
|
||||||
|
line
|
||||||
|
else
|
||||||
|
throw "$pkg could not get installed.."
|
||||||
|
echo_error "${err:-}"
|
||||||
|
echo_note "${out:-}"
|
||||||
|
line
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -149,6 +160,7 @@ main() {
|
||||||
# esac
|
# esac
|
||||||
# source_script "https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh"
|
# source_script "https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh"
|
||||||
|
|
||||||
|
check "Complete!"
|
||||||
}
|
}
|
||||||
|
|
||||||
beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh
|
beddu=https://git.k4li.de/scripts/beddu/raw/branch/main/dist/beddu.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue