Browse Source

Handle a non-existant sessions directory more gracefully

Samuel W. Flint 7 years ago
parent
commit
e6f50418ce
1 changed files with 1 additions and 3 deletions
  1. 1 3
      script-session

+ 1 - 3
script-session

@@ -8,9 +8,7 @@ currentdir=`pwd`
 
 
 #echo Recording session $1 as $filename
 #echo Recording session $1 as $filename
 
 
-if [ -d ~/sessions ] ; then
-    sleep 0.05s
-else
+if [ ! -d ~/sessions ] ; then
     mkdir ~/sessions
     mkdir ~/sessions
 fi
 fi