summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-02-06 16:29:48 +0100
committerMatthias Beyer <mail@beyermatthias.de>2015-02-06 20:31:48 +0100
commitce9be1bc31e5ff0a773ae6fa9125b80b42596985 (patch)
tree523d318674552c18420b0f65907e20ca0f3a2d90
parent58436f1fabc443808796d3c591692f518d173405 (diff)
Rewrote list-commands condition
-rw-r--r--nix-script.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix-script.sh b/nix-script.sh
index 29bdd93..a7d5905 100644
--- a/nix-script.sh
+++ b/nix-script.sh
@@ -46,6 +46,7 @@ all_commands() {
find $(dirname ${BASH_SOURCE[0]}) -type f -name "nix-script-*.sh"
}
+LIST_COMMANDS=0
VERBOSE=0
CONFIGFILE=~/.nixscriptsrc
@@ -107,7 +108,7 @@ else
. $CONFIFILE
fi
-if [[ $LIST_COMMNADS -eq 1 ]]
+if [ $LIST_COMMANDS -eq 1 ]
then
for cmd in $(all_commands)
do