Update z2t.sh
This commit is contained in:
parent
a8f9156b67
commit
0e4f928ad9
7
z2t.sh
7
z2t.sh
|
@ -10,19 +10,22 @@
|
|||
|
||||
if [ $1 = "-c" ]; then
|
||||
echo "cleaning..."
|
||||
if [ $2 = "-i" ]; then
|
||||
PARAM = "-i"
|
||||
fi
|
||||
cd tars
|
||||
for file in *.tar; do
|
||||
ZIP="${file%%.tar*}.zip"
|
||||
echo "check \"$ZIP\" ..."
|
||||
if [ -f "../$ZIP" ];then
|
||||
echo "delete $ZIP ..."
|
||||
rm -i "../$ZIP"
|
||||
rm $PARAM "../$ZIP"
|
||||
else
|
||||
echo "$ZIP not exist."
|
||||
fi
|
||||
done
|
||||
cd ..
|
||||
rm -ri tars
|
||||
rm -r $PARAM tars
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue