summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoan Touzet <wohali@users.noreply.github.com>2017-09-28 17:06:37 -0400
committerGitHub <noreply@github.com>2017-09-28 17:06:37 -0400
commitd04038a01d45206b161625a384e21169dbfc2e4e (patch)
tree9ad654f75259b1ae7f0d6110ced97e58a48c788e
parentb756b77f414707b6ead79e0595702786cfef1c39 (diff)
parent7c49f25d104be412c1c70ff7d6eb59a6f61db8ff (diff)
downloadcouchdb-d04038a01d45206b161625a384e21169dbfc2e4e.tar.gz
Merge pull request #847 from apache/add-remsh
Remove bashisms in remsh script Also fix bug introduced in refactoring
-rwxr-xr-xrel/overlay/bin/remsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/rel/overlay/bin/remsh b/rel/overlay/bin/remsh
index b409ceaa3..963c16a10 100755
--- a/rel/overlay/bin/remsh
+++ b/rel/overlay/bin/remsh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
@@ -66,11 +66,11 @@ done
shift $((OPTIND - 1))
-if [[ ! -z "$VERBOSE" ]]; then
+if [ ! -z "$VERBOSE" ]; then
# cheap but it works
set -x
fi
exec "$BINDIR/erl" -boot "$ROOTDIR/releases/$APP_VSN/start_clean" \
- -name remsh$$@$LHOST -remsh $NAME -hidden -setcookie $COOKIE \
+ -name remsh$$@$LHOST -remsh $NODE -hidden -setcookie $COOKIE \
"$@"