Added a check for availability of 'bower' in bin/mkrelease.

- Legacy-Id: 17567
This commit is contained in:
Henrik Levkowetz 2020-03-31 10:25:06 +00:00
parent dd2e5c124e
commit 8faf272010

View file

@ -66,6 +66,10 @@ function note() {
if [ -n "$VERBOSE" ]; then echo -e "\n$*"; fi
}
function check() {
[ "$(which $1)" ] || die "could not find the '$1' command. $2"
}
# ----------------------------------------------------------------------
function version() {
echo -e "$program $version"
@ -119,6 +123,11 @@ while true ; do
shift
done
# ----------------------------------------------------------------------
# Check some requirements
check bower "It is required to update web resources. Install with npm."
# ----------------------------------------------------------------------
# The program itself