fix string equal

This commit is contained in:
tianyu 2015-07-30 22:36:37 +08:00
parent c662e67365
commit cdfbb5c63e
1 changed files with 2 additions and 2 deletions

View File

@ -85,11 +85,11 @@ touch /tmp/.x2t
tmpdir=$(mktemp -d)
if [ "$TYPE"="-z" ]; then
if [ "$TYPE" = "-z" ]; then
DIR="${file%%.zip*}"
echo "unzip $file -d $tmpdir";
unzip "$file" -d $tmpdir # unzip to a tmp directory.
elif [ "$TYPE"="-r" ]; then
elif [ "$TYPE" = "-r" ]; then
DIR="${file%%.rar*}"
echo "unrar x $file $tmpdir";
mv "$file" tmp.rar