mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-08-08 16:07:21 +08:00
fix string equal
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user