From 8faf2720108d29baa297758977f743a65e241b43 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 31 Mar 2020 10:25:06 +0000 Subject: [PATCH] Added a check for availability of 'bower' in bin/mkrelease. - Legacy-Id: 17567 --- bin/mkrelease | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/mkrelease b/bin/mkrelease index 22bc892da..05a0912cc 100755 --- a/bin/mkrelease +++ b/bin/mkrelease @@ -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