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