new-words
diff new-words.sh @ 8:0ff259b8b6a3
v0.1: INSTALL.sh + minifixes
author | Igor Chubin <igor@chub.in> |
---|---|
date | Wed Mar 31 18:59:02 2010 +0300 (2010-03-31) |
parents | 9345cc05fdd1 |
children | 34d0332f238c |
line diff
1.1 --- a/new-words.sh Tue Mar 09 11:57:55 2010 +0200 1.2 +++ b/new-words.sh Wed Mar 31 18:59:02 2010 +0300 1.3 @@ -193,6 +193,7 @@ 1.4 } 1.5 1.6 mkdir -p $WORK_DIR 1.7 +oldpwd="$PWD" 1.8 cd $WORK_DIR 1.9 if echo "$1" | grep -q http: 1.10 then 1.11 @@ -200,7 +201,7 @@ 1.12 | get_words ${TEMP1}-full | add_stat ${TEMP1}-full| tee "$TEMP1" > "$TEMP2" 1.13 elif [ "$#" != 0 ] 1.14 then 1.15 - cat "$1" | tee $ORIGINAL_TEXT \ 1.16 + cat "$oldpwd/$1" | tee $ORIGINAL_TEXT \ 1.17 | get_words ${TEMP1}-full | add_stat ${TEMP1}-full | tee "$TEMP1" > "$TEMP2" 1.18 else 1.19 tee $ORIGINAL_TEXT \