Fix extract goodie

This commit is contained in:
JeremyStar™ 2024-01-03 03:25:50 +01:00
parent 8b8bed2ea1
commit 44a7d5019c

View file

@ -91,7 +91,7 @@ fi
## extract command, very useful ## extract command, very useful
if [ "${JSTMBASH_GOODIES_EXTRACT}" == "true" ]; then if [ "${JSTMBASH_GOODIES_EXTRACT}" == "true" ]; then
function extract(){ function extract(){
if [ -n "${1}" ]; then if [ -z "${1}" ]; then
echo ":: Error: No file given." echo ":: Error: No file given."
return 1 return 1
fi fi