From 7652c196993b078b6ee7c8d643ab6a705be60fe5 Mon Sep 17 00:00:00 2001 From: kytv Date: Fri, 7 Oct 2011 21:13:39 +0000 Subject: [PATCH] Abort if bash is not being used --- core/c/jbigi/mbuild-all.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/c/jbigi/mbuild-all.sh b/core/c/jbigi/mbuild-all.sh index 4814d5898..a108dffe0 100755 --- a/core/c/jbigi/mbuild-all.sh +++ b/core/c/jbigi/mbuild-all.sh @@ -1,5 +1,13 @@ #!/usr/bin/env bash +if [ -z "$BASH_VERSION" ]; then + echo "This script needs to be run with Bash." + echo + echo "Please install bash and then run this script with" + echo "bash $0" + exit 1 +fi + #FIXME What platforms for MacOS? MISC_DARWIN_PLATFORMS="powerpc powerpc64 powerpc64le powerpcle"