Browse code

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

Mike Chester authored on 2016/02/18 03:52:33
Showing 1 changed files
... ...
@@ -9,12 +9,12 @@
9 9
 # Stop all processes by setting ``UNSTACK_ALL`` or specifying ``-a``
10 10
 # on the command line
11 11
 
12
-UNSTACK_ALL=""
12
+UNSTACK_ALL=${UNSTACK_ALL:-""}
13 13
 
14 14
 while getopts ":a" opt; do
15 15
     case $opt in
16 16
         a)
17
-            UNSTACK_ALL=""
17
+            UNSTACK_ALL="-1"
18 18
             ;;
19 19
     esac
20 20
 done