Skip to content

Commit 8040e69

Browse files
author
Mike Chester
committed
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
1 parent 886410e commit 8040e69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

unstack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
# Stop all processes by setting ``UNSTACK_ALL`` or specifying ``-a``
1010
# on the command line
1111

12-
UNSTACK_ALL=""
12+
UNSTACK_ALL=${UNSTACK_ALL:-""}
1313

1414
while getopts ":a" opt; do
1515
case $opt in
1616
a)
17-
UNSTACK_ALL=""
17+
UNSTACK_ALL="-1"
1818
;;
1919
esac
2020
done

0 commit comments

Comments
 (0)