Only check if the target binary exists when it was given as argument

This commit is contained in:
maride 2021-06-17 03:11:29 +02:00
parent fb288938e9
commit fb4d3768ec

View File

@ -82,7 +82,7 @@ if [ "$POSITIVEADDR" == "" ] && [ "$NEGATIVEADDR" == "" ] || [ "$TARGETFILE" ==
fi fi
# check if the arguments are valid # check if the arguments are valid
if [ ! -e "$TARGETFILE" ]; then if [ ! "$TARGETFILE" == "" ] && [ ! -e "$TARGETFILE" ]; then
echo "The file $TARGETFILE does not exist." echo "The file $TARGETFILE does not exist."
SHOWHELP=1 SHOWHELP=1
fi fi