From 13042dc2e901442b873709fa4ab443b1342e7b35 Mon Sep 17 00:00:00 2001 From: Aldrin Piri Date: Sun, 26 Jul 2015 23:36:39 -0400 Subject: [PATCH] NIFI-758 Defaulting to POSIX compliant single bracket test command in lieu of the Bash [[ --- .../nifi-resources/src/main/resources/bin/nifi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh index 86e97d8657..2d60d5a701 100755 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh @@ -155,7 +155,7 @@ run() { sudo_cmd_prefix="" if $cygwin; then - if [[ -n "$run_as" ]]; then + if [ -n "$run_as" ]; then echo "The run.as option is not supported in a Cygwin environment. Exiting." exit 1 fi; @@ -163,7 +163,7 @@ run() { NIFI_HOME=`cygpath --path --windows "$NIFI_HOME"` BOOTSTRAP_CONF=`cygpath --path --windows "$BOOTSTRAP_CONF"` else - if [[ -n "$run_as" ]]; then + if [ -n "$run_as" ]; then if id -u "$run_as" >/dev/null 2>&1; then sudo_cmd_prefix="sudo -u ${run_as}" else