diff --git a/bin/dunecontrol b/bin/dunecontrol index bc9e4ce43d4e4bb58bb8a86100f0c4edae2bbaf9..893986c4f37d8f5c0e89e27a8786ebb6eb95f47c 100755 --- a/bin/dunecontrol +++ b/bin/dunecontrol @@ -506,6 +506,7 @@ export ONLY="" # parse commandline parameters while test $# -gt 0; do # get option + command=$1 option=$1 # get args @@ -631,12 +632,12 @@ while test $# -gt 0; do done # we assume there should be a command... -if test "x$1" = "x"; then +if test "x$command" = "x"; then usage exit 1 fi -case "$1" in +case "$command" in print) create_module_list eval "print_module_list ' ' $MODULES"