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