[archivers] xzize: output file to same directory

Fix bug that caused the output file to always be generated in the
current working directory.
这个提交包含在:
Matteo Cypriani 2019-10-28 16:20:50 +01:00
父节点 4147272b47
当前提交 d321ec9761
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -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