diff --git a/mpv.controller.sh b/mpv.controller.sh index 70540d8..487685c 100755 --- a/mpv.controller.sh +++ b/mpv.controller.sh @@ -17,7 +17,8 @@ # Vars {{{ PROGNAME=$(basename "${0}"); readonly PROGNAME PROGDIR=$(readlink -m $(dirname "${0}")); readonly PROGDIR -ARGS="${*}"; readonly ARGS +readonly ARGS="${*}" +readonly NBARGS="${#}" [ -z "${DEBUG}" ] && DEBUG=1 ## Export DEBUG for sub-script export DEBUG