diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-02-06 16:27:12 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-02-06 20:31:48 +0100 |
commit | 58436f1fabc443808796d3c591692f518d173405 (patch) | |
tree | 731c077a14d1983c488e4bffec465f0235f6d971 | |
parent | 90a7d0d26669d8ae6ee0c676e45bcc4244a1e11e (diff) |
Add no-command-passed check
-rw-r--r-- | nix-script.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nix-script.sh b/nix-script.sh index 7a7b6d5..29bdd93 100644 --- a/nix-script.sh +++ b/nix-script.sh @@ -116,6 +116,12 @@ then exit 0 fi +if [ -z "$COMMAND" ] +then + stderr "No command given" + exit 0 +fi + SCRIPT=$(script_for $COMMAND) if [ ! -f $SCRIPT ] |