Skip to content

Commit

Permalink
write to zshrc only if export dne exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jharshman committed May 17, 2023
1 parent 9d54f7a commit 6d65409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tar -C $HOME/.local/bin/ --exclude README.md -zxvf fwsync_${OS}_${ARCH}.tar.gz
chmod +x $HOME/.local/bin/fwsync

# update PATH if required.
if grep -q '# ADDED BY FWSYNC'; then
if ! grep -q '# ADDED BY FWSYNC' $HOME/.zshrc; then
echo "export PATH=\$HOME/.local/bin:\$PATH # ADDED BY FWSYNC" >> $HOME/.zshrc
fi

Expand Down

0 comments on commit 6d65409

Please sign in to comment.