mirror of
https://github.com/maride/barf.git
synced 2024-12-22 06:27:29 +00:00
Only check if the target binary exists when it was given as argument
This commit is contained in:
parent
fb288938e9
commit
fb4d3768ec
2
barf.sh
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user