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
|
for pkg in "${pkgArray[@]}"; do
|
||||||
if ! command_exists $pkg; then
|
if ! command_exists $pkg; then
|
||||||
spin bold "$(pen bold yellow Installing) $pkg"
|
spin bold "$(pen bold yellow Installing) $pkg"
|
||||||
run --err err pkg-install $pkg && check "$(pen bold green Installed) $pkg" ||
|
if run --err err pkg-install $pkg; then
|
||||||
throw "Something went wrong! Could not install $(pen bold red $pkg)" &&
|
check "$(pen bold green Installed) $pkg"
|
||||||
|
else
|
||||||
|
throw "Something went wrong! Could not install $(pen bold red $pkg)"
|
||||||
echo_error "${err:-}"
|
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
|
else
|
||||||
check "$pkg $(pen green already installed)"
|
check "$pkg $(pen grey already installed)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
@ -105,7 +113,7 @@
|
||||||
|
|
||||||
makeInstall() {
|
makeInstall() {
|
||||||
local err
|
local err
|
||||||
spin "Compiling $PACKAGE from source"
|
spin green bold "Compiling $PACKAGE from source"
|
||||||
if run --err err make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
if run --err err make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
||||||
check "Compiled $PACKAGE from source"
|
check "Compiled $PACKAGE from source"
|
||||||
line
|
line
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue