From d321ec97611cd133cb2e885d2dc4f18f9f185a2b Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Mon, 28 Oct 2019 16:20:50 +0100 Subject: [PATCH] [archivers] xzize: output file to same directory Fix bug that caused the output file to always be generated in the current working directory. --- archivers/xzize.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivers/xzize.sh b/archivers/xzize.sh index fd263d6..c32e4ef 100755 --- a/archivers/xzize.sh +++ b/archivers/xzize.sh @@ -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