diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-06-29 22:07:32 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-06-29 22:07:32 +0100 |
commit | ed188b6f2e0603f8c7fb1c80e13f4112d580111d (patch) | |
tree | 6c0a74e687fb47bcacd774e8f32c3e05dca04be0 | |
parent | 59e90a85e214bac473a37a35d11d5a0b066397a1 (diff) | |
download | gitano-ed188b6f2e0603f8c7fb1c80e13f4112d580111d.tar.gz |
BIN: gitano-auth: Provide more useful error when no commandline sent
-rw-r--r-- | bin/gitano-auth | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/gitano-auth b/bin/gitano-auth index 04ef19c..6e0af25 100644 --- a/bin/gitano-auth +++ b/bin/gitano-auth @@ -16,6 +16,11 @@ local sp = require "luxio.subprocess" local repo_root, username, keytag = ... local cmdline = luxio.getenv "SSH_ORIGINAL_COMMAND" or "" + +if cmdline:match("^[ \t\n]*$") then + gitano.log.fatal("No command provided, cannot continue") +end + local parsed_cmdline, warnings = gitano.util.parse_cmdline(cmdline) local start_log_level = gitano.log.get_level() |