Added shebang to install.sh
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
# This loads SCM Breeze into the shell session.
|
# This loads SCM Breeze into the shell session.
|
||||||
exec_string='[[ -s "$HOME/.scm_breeze/scm_breeze.sh" ]] && . "$HOME/.scm_breeze/scm_breeze.sh"'
|
exec_string='[[ -s "$HOME/.scm_breeze/scm_breeze.sh" ]] && . "$HOME/.scm_breeze/scm_breeze.sh"'
|
||||||
|
|
||||||
# Add line to bashrc and zshrc if not already present.
|
# Add line to bashrc and zshrc if not already present.
|
||||||
for rc in bashrc zshrc; do
|
for rc in bashrc zshrc; do
|
||||||
if [[ -s "$HOME/.$rc" ]] && ! grep -q "$exec_string" "$HOME/.$rc"; then
|
if [[ -s "$HOME/.$rc" ]] && ! grep -q "$exec_string" "$HOME/.$rc"; then
|
||||||
echo >> "$HOME/.$rc"
|
echo -e "\n$exec_string" >> "$HOME/.$rc"
|
||||||
echo "$exec_string" >> "$HOME/.$rc"
|
|
||||||
echo "== Added SCM Breeze to '~/.$rc'"
|
echo "== Added SCM Breeze to '~/.$rc'"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user