testing
This commit is contained in:
parent
7a7d701bb4
commit
fcd1d0f006
1 changed files with 15 additions and 7 deletions
22
test.sh
22
test.sh
|
@ -23,6 +23,8 @@ source-script() {
|
||||||
}
|
}
|
||||||
|
|
||||||
spin-get-dependencies() {
|
spin-get-dependencies() {
|
||||||
|
line
|
||||||
|
|
||||||
spin grey "Getting dependencies.."
|
spin grey "Getting dependencies.."
|
||||||
|
|
||||||
# INFO:
|
# INFO:
|
||||||
|
@ -66,7 +68,7 @@ spin-get-dependencies() {
|
||||||
|
|
||||||
pkglist="${deplist[@]}"
|
pkglist="${deplist[@]}"
|
||||||
|
|
||||||
echo "${pkglist[*]}"
|
echo "pkglist: ${pkglist[*]}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo_error "There are no dependencies to install for $distro"
|
echo_error "There are no dependencies to install for $distro"
|
||||||
|
@ -80,6 +82,7 @@ spin-get-dependencies() {
|
||||||
main() {
|
main() {
|
||||||
local err
|
local err
|
||||||
|
|
||||||
|
line
|
||||||
if ! spin-get-dependencies; then
|
if ! spin-get-dependencies; then
|
||||||
throw "Dependencies could not get generated!"
|
throw "Dependencies could not get generated!"
|
||||||
else
|
else
|
||||||
|
@ -88,12 +91,17 @@ main() {
|
||||||
spin bold yellow "Installing packagelist.. ${pkglist[*]}"
|
spin bold yellow "Installing packagelist.. ${pkglist[*]}"
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
if run --err err pkg-install "${pkglist[*]}"; then
|
for pkg in "${pkglist[@]}"; do
|
||||||
check "Installed packages!"
|
spin bold yellow "Installing $pkg"
|
||||||
else
|
if run --err err pkg-install "$pkg"; then
|
||||||
throw "$(pen bold blue ${pkglist[*]}) could not get installed!"
|
check "Installed $pkg!"
|
||||||
echo_error "${err:-}"
|
line
|
||||||
fi
|
else
|
||||||
|
throw "$(pen bold blue ${pkglist[*]}) could not get installed!"
|
||||||
|
echo_error "${err:-}"
|
||||||
|
line
|
||||||
|
fi
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# case "$distro" in
|
# case "$distro" in
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue