You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by al...@apache.org on 2015/08/13 05:24:08 UTC
nifi git commit: NIFI-758 Defaulting to POSIX compliant single
bracket test command in lieu of the Bash [[
Repository: nifi
Updated Branches:
refs/heads/develop c6d500b31 -> 13042dc2e
NIFI-758 Defaulting to POSIX compliant single bracket test command in lieu of the Bash [[
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/13042dc2
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/13042dc2
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/13042dc2
Branch: refs/heads/develop
Commit: 13042dc2e901442b873709fa4ab443b1342e7b35
Parents: c6d500b
Author: Aldrin Piri <al...@apache.org>
Authored: Sun Jul 26 23:36:39 2015 -0400
Committer: Aldrin Piri <al...@apache.org>
Committed: Wed Aug 12 23:22:30 2015 -0400
----------------------------------------------------------------------
.../nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/13042dc2/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-resources/src/main/resources/bin/nifi.sh
----------------------------------------------------------------------
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 86e97d8..2d60d5a 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