We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20cfd67 commit eeaf266Copy full SHA for eeaf266
unstack.sh
@@ -25,9 +25,12 @@ if [[ "$1" == "--all" ]]; then
25
fi
26
27
# Shut down devstack's screen to get the bulk of OpenStack services in one shot
28
-SESSION=$(screen -ls | grep "[0-9].stack" | awk '{ print $1 }')
29
-if [[ -n "$SESSION" ]]; then
30
- screen -X -S $SESSION quit
+SCREEN=$(which screen)
+if [[ -n "$SCREEN" ]]; then
+ SESSION=$(screen -ls | awk '/[0-9].stack/ { print $1 }')
31
+ if [[ -n "$SESSION" ]]; then
32
+ screen -X -S $SESSION quit
33
+ fi
34
35
36
# Swift runs daemons
0 commit comments