fix: extract func
This commit is contained in:
parent
6ebab93ed4
commit
f805c40856
@ -51,7 +51,8 @@ extract () {
|
|||||||
else
|
else
|
||||||
if [ -f "$1" ]; then # if file exists
|
if [ -f "$1" ]; then # if file exists
|
||||||
local NAME
|
local NAME
|
||||||
NAME=${1%.*.*}
|
NAME=${1%.*}
|
||||||
|
NAME=${NAME%.*}
|
||||||
|
|
||||||
if [ -e "$NAME" ]; then
|
if [ -e "$NAME" ]; then
|
||||||
echo "error: extract: '$NAME' exists" >&2
|
echo "error: extract: '$NAME' exists" >&2
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user