Skip to content

Commit 2fd7a59

Browse files
Update scripts/build_macos_pkg.sh
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent de97914 commit 2fd7a59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/build_macos_pkg.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ cat > "$SCRIPTS_DIR/postinstall" << 'EOF'
9999
# Post-installation script for RamaLama
100100
101101
# 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
102+
EXPORT_LINE='export PATH="/usr/local/bin:$PATH"'
103+
if ! grep -Fxq "$EXPORT_LINE" ~/.zshrc 2>/dev/null; then
104+
echo "$EXPORT_LINE" >> ~/.zshrc
104105
fi
105106
106107
if ! grep -q '/usr/local/bin' ~/.bash_profile 2>/dev/null; then

0 commit comments

Comments
 (0)