diff options
| author | Tor Aamodt <[email protected]> | 2013-02-03 13:04:20 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:49:25 -0700 |
| commit | e288eefb9657b13468355e50a158384db1aa3ea0 (patch) | |
| tree | f1daf4411c6b2eebec2929322b590a022269657b /setup_environment | |
| parent | 4063c60c477db56b9401db2e1e6299e3e514fbda (diff) | |
verify user is using bash
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15168]
Diffstat (limited to 'setup_environment')
| -rw-r--r-- | setup_environment | 2 |
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 )" |
