Skip to content

Commit

Permalink
Revert the [[ to [ for macOS's super old Bash
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Apr 9, 2023
1 parent 3039080 commit 3833ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Expand Up @@ -28,7 +28,7 @@ function require {
for c in "$@"; do
local V="${c//[^[:word:]]/_}"
V="$(tr '[:lower:]' '[:upper:]' <<< "$V")" # For macOS's old Bash only.
if [[ -v "$V" ]]; then continue; fi
if [ -v "$V" ]; then continue; fi
C=$(command -v "$c") || { echo "Required command not found: $c" >&2; exit 1; }
eval "$V"="$C"
done
Expand Down

0 comments on commit 3833ba9

Please sign in to comment.