summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2013-02-03 13:04:20 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:25 -0700
commite288eefb9657b13468355e50a158384db1aa3ea0 (patch)
treef1daf4411c6b2eebec2929322b590a022269657b
parent4063c60c477db56b9401db2e1e6299e3e514fbda (diff)
verify user is using bash
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15168]
-rw-r--r--setup_environment2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup_environment b/setup_environment
index 99441e1..c8250dd 100644
--- a/setup_environment
+++ b/setup_environment
@@ -1,5 +1,7 @@
# see README before running this
+ps -p $$ | awk '/bash/ {exit 1;}' && ( echo "ERROR ** source setup_environment must be run in a bash shell; see README" ; exit 0 ) && exit
+
export GPGPUSIM_SETUP_ENVIRONMENT_WAS_RUN=
export GPGPUSIM_ROOT="$( cd "$( dirname "$BASH_SOURCE" )" && pwd )"