mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-26 16:05:26 -04:00
build: quiet build and verbose changelog
This commit is contained in:
parent
7a70535553
commit
3c2bba2a9a
4 changed files with 14 additions and 7 deletions
|
@ -5,15 +5,15 @@
|
|||
|
||||
set -eu
|
||||
|
||||
missing_program=0
|
||||
requires_program=""
|
||||
for pkg in "${@}"; do
|
||||
if ! command -v "${pkg}" >/dev/null; then
|
||||
missing_program=1
|
||||
echo "Missing program: ${pkg}" >&2
|
||||
requires_program="${requires_program:+"${requires_program} "}${pkg}"
|
||||
continue
|
||||
fi
|
||||
done
|
||||
|
||||
if test "${missing_program}" = "1"; then
|
||||
if test -n "${requires_program}"; then
|
||||
echo "Missing program(s): ${requires_program}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue