[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:
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