summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-07-12 19:12:47 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-07-15 22:02:31 +0200
commit3b3900e1ead3e77bd5bd930e5b1b5b64eff3113d (patch)
treeced0951418e56c776cabfa61469e81ec620148b4 /nix-script
parentb18b573ff04250c76bd5027b2a197d08cf42fe6d (diff)
Change user irrelevant outputs to dbg output
Diffstat (limited to 'nix-script')
-rwxr-xr-xnix-script7
1 files changed, 4 insertions, 3 deletions
diff --git a/nix-script b/nix-script
index 3bca4e9..2fec7da 100755
--- a/nix-script
+++ b/nix-script
@@ -108,7 +108,7 @@ done
if [ $LIST_COMMANDS -eq 1 ]
then
- stdout "Listing commands"
+ dbg "Listing commands"
for cmd in $(all_commands)
do
echo $(scriptname_to_command $cmd)
@@ -118,8 +118,9 @@ fi
[ -z "$COMMAND" ] && stderr "No command given" && exit 1
-stdout "Searching for script for '$COMMAND'"
+dbg "Searching for script for '$COMMAND'"
SCRIPT=$(script_for $COMMAND)
+dbg "Script is: $SCRIPT"
#
# Error checking whether the script is available and executable.
@@ -127,7 +128,7 @@ SCRIPT=$(script_for $COMMAND)
[ ! -f $SCRIPT ] && stderr "Not available: $COMMAND -> $SCRIPT" && exit 1
[[ ! -x $SCRIPT ]] && stderr "Not executeable: $SCRIPT" && exit 1
-stdout "Parsing args for '$COMMAND'"
+dbg "Parsing args for '$COMMAND'"
SCRIPT_ARGS=$(shift_n $SHIFT_ARGS $*)
#