Skip to content

Commit 8faf272

Browse files
committed
Added a check for availability of 'bower' in bin/mkrelease.
- Legacy-Id: 17567
1 parent dd2e5c1 commit 8faf272

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

bin/mkrelease

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ function note() {
6666
if [ -n "$VERBOSE" ]; then echo -e "\n$*"; fi
6767
}
6868

69+
function check() {
70+
[ "$(which $1)" ] || die "could not find the '$1' command. $2"
71+
}
72+
6973
# ----------------------------------------------------------------------
7074
function version() {
7175
echo -e "$program $version"
@@ -119,6 +123,11 @@ while true ; do
119123
shift
120124
done
121125

126+
# ----------------------------------------------------------------------
127+
# Check some requirements
128+
129+
check bower "It is required to update web resources. Install with npm."
130+
122131
# ----------------------------------------------------------------------
123132
# The program itself
124133

0 commit comments

Comments
 (0)