[archivers] xzize: output file to same directory
Fix bug that caused the output file to always be generated in the current working directory.
This commit is contained in:
parent
4147272b47
commit
d321ec9761
|
@ -36,7 +36,7 @@ test_extension()
|
||||||
NEWEXTENSION="$3"
|
NEWEXTENSION="$3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BASE="$(basename "$FILE" ."$EXTENSION")"
|
BASE="$(echo "$FILE" | sed "s/\.${EXTENSION}//")"
|
||||||
if [ "$BASE" != "$FILE" ] ; then
|
if [ "$BASE" != "$FILE" ] ; then
|
||||||
DEST="$BASE".$NEWEXTENSION
|
DEST="$BASE".$NEWEXTENSION
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in New Issue