diff options
author | Joshua Harlow <harlowja@gmail.com> | 2015-02-16 19:54:08 -0800 |
---|---|---|
committer | Joshua Harlow <harlowja@gmail.com> | 2015-02-16 19:54:08 -0800 |
commit | f4c4fb6428478edd54e638a09fb70a58064aa907 (patch) | |
tree | c3b99dc71348bbd8ae8b10fb80a1db4a909de33d | |
parent | 487e8a824f8f54d6cabf00f44c5b852380f5f0d4 (diff) | |
download | zake-f4c4fb6428478edd54e638a09fb70a58064aa907.tar.gz |
Allow FORCE=yes override
-rwxr-xr-x | tools/run_zookeeper.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/run_zookeeper.sh b/tools/run_zookeeper.sh index 66166c5..27bd671 100755 --- a/tools/run_zookeeper.sh +++ b/tools/run_zookeeper.sh @@ -2,6 +2,7 @@ set -e +FORCE="${FORCE:-no}" PKGS="" PKG_CMD="" if [ -f "/etc/redhat-release" ]; then @@ -12,7 +13,10 @@ elif [ -f "/etc/debian_version" ]; then PKG_CMD="apt-get install -y" else echo "Unknown operating system!" - exit 1 + if [ "$FORCE" != "yes" ]; then + echo -e "To run anyway set FORCE=yes and rerun." >&2 + exit 1 + fi fi JAVA=`which java` |