Skip to content

Commit

Permalink
fixed ctl command for empty input
Browse files Browse the repository at this point in the history
the latter approach
  • Loading branch information
ludwikbukowski committed May 11, 2016
1 parent 807ac5d commit f30b4fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rel/files/mongooseimctl
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ manage_cluster()
ctl $QUOTED_ARGS;;
*)
GUARD="unknown"
until [[ $GUARD = "yes" ]] || [[ $GUARD = "no" ]] ; do
until [ "$GUARD" = "yes" ] || [ "$GUARD" = "no" ] ; do
echo $1
read GUARD
if [[ $GUARD = "yes" ]]; then
if [ "$GUARD" = "yes" ]; then
echo $2
ctl $QUOTED_ARGS
elif [[ $GUARD = "no" ]]; then
elif [ "$GUARD" = "no" ]; then
echo "Operation discarded by user"
exit 1
else
Expand Down

0 comments on commit f30b4fa

Please sign in to comment.