From 8040e69a049731216efcdc3497b78391f7bc2a31 Mon Sep 17 00:00:00 2001 From: Mike Chester Date: Wed, 17 Feb 2016 10:52:33 -0800 Subject: [PATCH] Check UNSTACK_ALL or -a flag set on unstack These flags were not functioning as described. Check if UNSTACK_ALL is set in env or -a flag is set when calling script. Change-Id: I128d32b1e74ee46e24a9eb2e81560e58137b1553 Closes-Bug: #1546687 --- unstack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unstack.sh b/unstack.sh index d69e3f5213..d7670e38a5 100755 --- a/unstack.sh +++ b/unstack.sh @@ -9,12 +9,12 @@ # Stop all processes by setting ``UNSTACK_ALL`` or specifying ``-a`` # on the command line -UNSTACK_ALL="" +UNSTACK_ALL=${UNSTACK_ALL:-""} while getopts ":a" opt; do case $opt in a) - UNSTACK_ALL="" + UNSTACK_ALL="-1" ;; esac done