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 de97914 commit 2fd7a59Copy full SHA for 2fd7a59
scripts/build_macos_pkg.sh
@@ -99,8 +99,9 @@ cat > "$SCRIPTS_DIR/postinstall" << 'EOF'
99
# Post-installation script for RamaLama
100
101
# Ensure /usr/local/bin is in PATH
102
-if ! grep -q '/usr/local/bin' ~/.zshrc 2>/dev/null; then
103
- echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
+EXPORT_LINE='export PATH="/usr/local/bin:$PATH"'
+if ! grep -Fxq "$EXPORT_LINE" ~/.zshrc 2>/dev/null; then
104
+ echo "$EXPORT_LINE" >> ~/.zshrc
105
fi
106
107
if ! grep -q '/usr/local/bin' ~/.bash_profile 2>/dev/null; then
0 commit comments