triage_crashes.sh: Fix error reporting

This commit is contained in:
realmadsci 2021-03-15 14:09:03 -04:00
parent 70403f7e1b
commit b289e7ad07

View File

@ -60,12 +60,12 @@ if
fi fi
if [ ! -f "$BIN" -o ! -x "$BIN" ]; then if [ ! -f "$BIN" -o ! -x "$BIN" ]; then
echo "[-] Error: binary '$2' not found or is not executable." 1>&2 echo "[-] Error: binary '$BIN' not found or is not executable." 1>&2
exit 1 exit 1
fi fi
if [ ! -d "$DIR/queue" ]; then if [ ! -d "$DIR/queue" ]; then
echo "[-] Error: directory '$1' not found or not created by afl-fuzz." 1>&2 echo "[-] Error: directory '$DIR' not found or not created by afl-fuzz." 1>&2
exit 1 exit 1
fi fi