fix: extract func
This commit is contained in:
parent
6ebab93ed4
commit
f805c40856
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user