Skip to content

Commit

Permalink
If run as root, link sm to /bin/sm.
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Jan 15, 2014
1 parent 8a31221 commit 33022ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/sm-installer
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,9 @@ mv ${sm_owner}-sm-*/* .
rm -rf ${sm_owner}-sm-*

"${sm_path}/zsh/bin/zsh" ./install --zsh "${sm_path}/zsh/bin/zsh" "$@"

if test "${UID}" = '0'
then ln -fs ${sm_path}/bin/sm /bin/sm
fi

exit 0

0 comments on commit 33022ad

Please sign in to comment.