This commit is contained in:
pika 2025-05-22 15:40:11 +02:00
parent 91c5cc432a
commit 5c48e57e0c
3 changed files with 141 additions and 22 deletions

View file

@ -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.."