Skip to content

Commit

Permalink
Fix macOS installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
thevindu-w committed Nov 23, 2024
1 parent d404ae9 commit 821b0c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper_tools/install-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ missingLib=
for exec_name in "${exec_names[@]}"; do
if [ -f "$exec_name" ]; then
chmod +x "$exec_name"
if ! sh -c '"./$exec_name" -h' &>/dev/null; then
missing="$( (sh -c "'./$exec_name' -h 2>&1" 2>/dev/null || true) | grep -oE 'lib[a-zA-Z0-9.-]+\.dylib' | grep -oE 'lib[a-zA-Z0-9-]+' | head -n 1)"
if ! sh -c "./$exec_name -h 2>&1" &>/dev/null; then
missing="$( (sh -c "./$exec_name -h 2>&1" 2>/dev/null || true) | grep -oE 'lib[a-zA-Z0-9.-]+\.dylib' | grep -oE 'lib[a-zA-Z0-9-]+' | head -n 1)"
[ -n "$missing" ] && missingLib="$missing"
continue
fi
Expand Down

0 comments on commit 821b0c5

Please sign in to comment.