Protect input parameter file name with double quotes every where in case it contains white space. Closes issue #28

This commit is contained in:
Jean-Francois Dockes
2010-09-30 17:01:37 +02:00
parent 13d550a40e
commit 7b803170c2
12 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ cleanup()
trap cleanup EXIT HUP QUIT INT TERM
# Old kwd files are gzip/tar archibes. Newer ones are zip archives.
if file $infile | grep -qi gzip ; then
if file "$infile" | grep -qi gzip ; then
# Unzip the input file and change to the unzipped directory
gunzip < "$infile" | (cd $tmpdir/rclkwdtmp;tar xf -)
else