wip
This commit is contained in:
parent
91c5cc432a
commit
5c48e57e0c
3 changed files with 141 additions and 22 deletions
21
neovim.sh
21
neovim.sh
|
@ -45,27 +45,6 @@
|
|||
fi
|
||||
}
|
||||
|
||||
# command for executing silent mode only when nessessairy
|
||||
# ex: run "Building $PACKAGE" pkg-install neovim
|
||||
run() {
|
||||
local msg=$1
|
||||
local cmd="${@:1}"
|
||||
local err out
|
||||
|
||||
if $silent || [ -z $silent ]; then
|
||||
spin "$msg"
|
||||
if run --err err --out out "$cmd"; then
|
||||
check "Done!"
|
||||
else
|
||||
trow "OUTPUT: ${out:-}"
|
||||
trow "ERROR_OUTPUT: ${err:-}"
|
||||
fi
|
||||
else
|
||||
echo_pkg "$msg"
|
||||
"$cmd"
|
||||
fi
|
||||
}
|
||||
|
||||
getDependencies() {
|
||||
local err
|
||||
echo_pkg deps "Checking build dependencies, and installs missing.."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue