Allow overwrite on extract

This commit is contained in:
Mario Fetka 2013-03-02 17:43:59 +01:00
parent 73f4adc58a
commit 09ee54f497

View File

@ -61,11 +61,11 @@ function process_file() {
if [ "$format" = "cp" ]; then if [ "$format" = "cp" ]; then
cp $src $dst cp $src $dst
elif [ "$format" = "7zip" ]; then elif [ "$format" = "7zip" ]; then
$CMD_7z x -o$dst $src $CMD_7z x -y -o$dst $src
elif [ "$format" = "unzip" ]; then elif [ "$format" = "unzip" ]; then
$CMD_unzip $src -d $dst $CMD_unzip -o $src -d $dst
elif [ "$format" = "unrar" ]; then elif [ "$format" = "unrar" ]; then
$CMD_unrar x $src $dst $CMD_unrar xy $src $dst
elif [ "$format" = "lha" ]; then elif [ "$format" = "lha" ]; then
$CMD_lha x -w=$dst $src $CMD_lha x -w=$dst $src
elif [ "$format" = "targz" ]; then elif [ "$format" = "targz" ]; then