Skip to content

Commit

Permalink
Merge pull request technomancy#1919 from marthall/master
Browse files Browse the repository at this point in the history
Escape variable so script does not break on space in username
  • Loading branch information
hypirion committed Jun 19, 2015
2 parents eea9fca + d493998 commit 43a28e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lein-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

export LEIN_VERSION="2.5.2-SNAPSHOT"

if [ `whoami` = "root" ] && [ "$LEIN_ROOT" = "" ]; then
if [ "`whoami`" = "root" ] && [ "$LEIN_ROOT" = "" ]; then
echo "WARNING: You're currently running as root; probably by accident."
echo "Press control-C to abort or Enter to continue as root."
echo "Set LEIN_ROOT to disable this warning."
Expand Down

0 comments on commit 43a28e0

Please sign in to comment.