소스 검색

Made sure that it goes to the correct dir

Samuel W. Flint 10 년 전
부모
커밋
0e8f316993
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      script-session

+ 3 - 0
script-session

@@ -4,6 +4,7 @@ date=(`date +%F`)
 subject=(`echo $1 | sed -e "s/ /-/g"`)
 filename=~/sessions/${date}-${subject}.sessionscript
 timingfile=~/sessions/${date}-${subject}.timing
+currentdir=`pwd`
 
 #echo Recording session $1 as $filename
 
@@ -18,3 +19,5 @@ script -f $filename
 cd ~/sessions
 git add ${date}-${subject}.sessionscript ${date}-${subject}.timing
 git commit
+
+cd ${currentdir}