fixed path.
authorChris Koeritz <fred@gruntose.com>
Sat, 6 Oct 2012 22:28:11 +0000 (18:28 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 6 Oct 2012 22:28:11 +0000 (18:28 -0400)
scripts/rev_control/rev_control.sh

index f809f5f1513de993e598210f18a47eb83e949fa6..84a5039345f317b5c2c0b91bc0370e2c606aab1a 100644 (file)
@@ -7,7 +7,10 @@
 # is a DOS path, but we need it to be a DOS path for our XSEDE testing, so that blows.
 # to get past this, TMP gets changed below to a hopefully generic and safe place.
 
-export TMP=/tmp/rev_control_$USER
+if [[ $TMP =~ .:.* ]]; then
+  echo making weirdo temporary directory for DOS path.
+  export TMP=/tmp/rev_control_$USER
+fi
 if [ ! -d "$TMP" ]; then
   mkdir $TMP
 fi