[archivers] xzize: output file to same directory

Fix bug that caused the output file to always be generated in the
current working directory.
Este commit está contenido en:
Matteo Cypriani 2019-10-28 16:20:50 +01:00
padre 4147272b47
commit d321ec9761
Se han modificado 1 ficheros con 1 adiciones y 1 borrados

Ver fichero

@ -36,7 +36,7 @@ test_extension()
NEWEXTENSION="$3"
fi
BASE="$(basename "$FILE" ."$EXTENSION")"
BASE="$(echo "$FILE" | sed "s/\.${EXTENSION}//")"
if [ "$BASE" != "$FILE" ] ; then
DEST="$BASE".$NEWEXTENSION
return 0