diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-02-06 16:35:22 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-02-06 20:31:48 +0100 |
commit | 229510e3e2218c2e4ee4571fab72e1e541e53078 (patch) | |
tree | 54c58af1a313e19e6455a1eab2eeecdc6e22499e | |
parent | 653005f417ee0d650f99be8de39257d63367c068 (diff) |
Add stdout output
-rw-r--r-- | nix-script.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nix-script.sh b/nix-script.sh index 2f5a7bb..e63f9c6 100644 --- a/nix-script.sh +++ b/nix-script.sh @@ -79,6 +79,7 @@ do "-v" ) export VERBOSE=1 + stdout "Verbose now" shift_one_more ;; @@ -95,6 +96,7 @@ do else if [ -z "$COMMAND" ] then + stdout "Found command: '$cmd'" COMMAND=$cmd shift_one_more else @@ -109,11 +111,13 @@ if [ ! -f $CONFIGFILE ] then stderr "No config file: '$CONFIGFILE', won't override defaults" else + stdout "Source config: '$CONFIGFILE'" . $CONFIFILE fi if [ $LIST_COMMANDS -eq 1 ] then + stdout "Listing commands" for cmd in $(all_commands) do echo "$cmd" @@ -127,6 +131,7 @@ then exit 0 fi +stdout "Searching for script for '$COMMAND'" SCRIPT=$(script_for $COMMAND) if [ ! -f $SCRIPT ] @@ -141,6 +146,8 @@ then exit 1 fi +stdout "Parsing args for '$COMMAND'" SCRIPT_ARGS=$(shift_n $SHIFT_ARGS $*) +stdout "Calling: '$COMMAND $SCRIPT_ARGS'" exec $SCRIPT $SCRIPT_ARGS |