bin/hubbard in hubbard-0.0.0 vs bin/hubbard in hubbard-0.0.1

- old
+ new

@@ -4,11 +4,11 @@ PROJECT_REGEX='[a-zA-Z0-9\-]{1,32}' REPOSITORY_REGEX='[a-zA-Z0-9\-]{1,32}' USERNAME_REGEX='[a-zA-Z0-9\-]{1,32}' -HUB_DATA=ENV['HUB_DATA'] || File.expand_path("~/.hubbard") +HUB_DATA = ENV['HUB_DATA'] || File.expand_path("~/.hubbard") FileUtils.mkdir_p(File.join(HUB_DATA, "projects")) FileUtils.mkdir_p(File.join(HUB_DATA, "accounts")) def next_arg(msg) @@ -53,9 +53,14 @@ exit 1 end end username = next_arg "Please specify the username to run as" + +if ENV['SSH_ORIGINAL_COMMAND'] + ARGV = ENV['SSH_ORIGINAL_COMMAND'].split +end + command = next_arg "Please specify a command to run" if command == "run-as" if username != "admin" $stderr.puts "You don't have permission to do that"