testing new syntax.. kinda..
This commit is contained in:
parent
39277705e5
commit
88e009adcd
1 changed files with 12 additions and 4 deletions
16
neovim.sh
16
neovim.sh
|
@ -70,11 +70,19 @@
|
|||
for pkg in "${pkgArray[@]}"; do
|
||||
if ! command_exists $pkg; then
|
||||
spin bold "$(pen bold yellow Installing) $pkg"
|
||||
run --err err pkg-install $pkg && check "$(pen bold green Installed) $pkg" ||
|
||||
throw "Something went wrong! Could not install $(pen bold red $pkg)" &&
|
||||
if run --err err pkg-install $pkg; then
|
||||
check "$(pen bold green Installed) $pkg"
|
||||
else
|
||||
throw "Something went wrong! Could not install $(pen bold red $pkg)"
|
||||
echo_error "${err:-}"
|
||||
fi
|
||||
|
||||
# minifyed
|
||||
# run --err err pkg-install $pkg && check "$(pen bold green Installed) $pkg" ||
|
||||
# throw "Something went wrong! Could not install $(pen bold red $pkg)" &&
|
||||
# echo_error "${err:-}"
|
||||
else
|
||||
check "$pkg $(pen green already installed)"
|
||||
check "$pkg $(pen grey already installed)"
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
@ -105,7 +113,7 @@
|
|||
|
||||
makeInstall() {
|
||||
local err
|
||||
spin "Compiling $PACKAGE from source"
|
||||
spin green bold "Compiling $PACKAGE from source"
|
||||
if run --err err make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
||||
check "Compiled $PACKAGE from source"
|
||||
line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue