summaryrefslogtreecommitdiffstats
path: root/nix-script
diff options
context:
space:
mode:
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 $*)
#