Added a check for availability of 'bower' in bin/mkrelease.
- Legacy-Id: 17567
This commit is contained in:
parent
dd2e5c124e
commit
8faf272010
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue