Skip to content

Commit

Permalink
make llvm-kompile-matching script slightly more robust (#4498)
Browse files Browse the repository at this point in the history
We should be quoting certain variables passed into the script, and we
also should not fail the script if the directory that the script creates
does not exist.
  • Loading branch information
Dwight Guth authored Jul 8, 2024
1 parent 9941e87 commit 8034515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm-backend/src/main/scripts/bin/llvm-kompile-matching
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ then
elif [ $# -lt 4 ];
then
fail "ERROR: Not enough arguments!"
elif [ ! -f $1 ];
elif [ ! -f "$1" ];
then
fail "ERROR: <definition.kore> not a file!"
elif [ ! -d $3 ];
elif ! mkdir -p "$3";
then
fail "ERROR: <output dir> not a directory!"
fi
Expand Down

0 comments on commit 8034515

Please sign in to comment.