Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Present the user with a more helpful error message if they do not run…

… through sudo instead of blowing up on nil.strip
  • Loading branch information...
commit 4668675af23e42e527689767e724869136637847 1 parent 79eed79
@schubert schubert authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  libraries/user.rb
View
2  libraries/user.rb
@@ -1,3 +1,5 @@
+raise "sudo to root before running" if ENV['SUDO_USER'].nil?
+
WS_USER = ENV['SUDO_USER'].strip
WS_HOME = ENV['HOME']
WS_LIBRARY = "#{WS_HOME}/Library"
Please sign in to comment.
Something went wrong with that request. Please try again.