testing..
This commit is contained in:
parent
10bdef5d0e
commit
384406cfea
1 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,6 @@
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo_info "Sourcing external script:${NC} $url"
|
|
||||||
# ─< if $1 is a url, grab it and source it, also deletes afterwards >─────────────────────
|
# ─< if $1 is a url, grab it and source it, also deletes afterwards >─────────────────────
|
||||||
if command_exists curl; then
|
if command_exists curl; then
|
||||||
curl -fsSL $url -o $import
|
curl -fsSL $url -o $import
|
||||||
|
@ -40,6 +39,7 @@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "$import"
|
source "$import"
|
||||||
|
echo_info "Sourcing external script:${NC} $url"
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
rm -f "$import"
|
rm -f "$import"
|
||||||
fi
|
fi
|
||||||
|
@ -91,16 +91,16 @@
|
||||||
debian | ubuntu | arch | fedora | alpine | opensuse)
|
debian | ubuntu | arch | fedora | alpine | opensuse)
|
||||||
for pkg in "${pkgArray[@]}"; do
|
for pkg in "${pkgArray[@]}"; do
|
||||||
if ! command_exists $pkg; then
|
if ! command_exists $pkg; then
|
||||||
spin red "Installing $pkg"
|
spin yellow bold "Installing $(pen red $pkg)"
|
||||||
sleep 1
|
sleep 1
|
||||||
if run --err err _install $pkg; then
|
if run --err err _install $pkg; then
|
||||||
check "Installed $pkg"
|
check "$pkg $(pen green installed)!"
|
||||||
else
|
else
|
||||||
throw "Something went wrong! Could not install $(pen bold red $pkg)"
|
throw "Something went wrong! Could not install $(pen bold red $pkg)"
|
||||||
throw "${err:-}"
|
throw "${err:-}"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
pen green "$pkg already installed."
|
pen "$pkg $(pen green already installed)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue