We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc877e9 commit 1724a48Copy full SHA for 1724a48
1 file changed
build.sh
@@ -1,7 +1,13 @@
1
#!/bin/bash
2
set -eo pipefail
3
4
-export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
+# Safely append Homebrew bins to PATH if they exist, to avoid overriding custom toolchains
5
+if [[ ":$PATH:" != *":/opt/homebrew/bin:"* ]] && [ -d "/opt/homebrew/bin" ]; then
6
+ export PATH="$PATH:/opt/homebrew/bin"
7
+fi
8
+if [[ ":$PATH:" != *":/usr/local/bin:"* ]] && [ -d "/usr/local/bin" ]; then
9
+ export PATH="$PATH:/usr/local/bin"
10
11
12
echo "=============================================="
13
echo " SwiftLM Build Script "
0 commit comments