From fb4d3768ecd49a8bb387339b8dd9834332200931 Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 17 Jun 2021 03:11:29 +0200 Subject: [PATCH] Only check if the target binary exists when it was given as argument --- barf.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barf.sh b/barf.sh index 51c76bc..f88fce0 100755 --- a/barf.sh +++ b/barf.sh @@ -82,7 +82,7 @@ if [ "$POSITIVEADDR" == "" ] && [ "$NEGATIVEADDR" == "" ] || [ "$TARGETFILE" == fi # check if the arguments are valid -if [ ! -e "$TARGETFILE" ]; then +if [ ! "$TARGETFILE" == "" ] && [ ! -e "$TARGETFILE" ]; then echo "The file $TARGETFILE does not exist." SHOWHELP=1 fi