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