Browse code

Merge "Fail if run in POSIX compatability mode"

Jenkins authored on 2015/03/14 02:27:28
Showing 1 changed files
... ...
@@ -21,6 +21,13 @@
21 21
 
22 22
 # Learn more and get the most recent version at http://devstack.org
23 23
 
24
+# check if someone has invoked with "sh"
25
+if [[ "${POSIXLY_CORRECT}" == "y" ]]; then
26
+    echo "You appear to be running bash in POSIX compatability mode."
27
+    echo "devstack uses bash features. \"./stack.sh\" should do the right thing"
28
+    exit 1
29
+fi
30
+
24 31
 # Make sure custom grep options don't get in the way
25 32
 unset GREP_OPTIONS
26 33