Permalink
Browse files

If run as root, link sm to /bin/sm.

  • Loading branch information...
1 parent 8a31221 commit 33022ad6bb95788d1ec086f3f2acd7ec876c740b @wayneeseguin wayneeseguin committed Jan 15, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 bin/sm-installer
View
@@ -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.