fix: extract func

This commit is contained in:
TheK4n 2021-10-13 23:15:47 +03:00
parent 6ebab93ed4
commit f805c40856

View File

@ -51,7 +51,8 @@ extract () {
else
if [ -f "$1" ]; then # if file exists
local NAME
NAME=${1%.*.*}
NAME=${1%.*}
NAME=${NAME%.*}
if [ -e "$NAME" ]; then
echo "error: extract: '$NAME' exists" >&2