From 154b47ad9ec353e626d057ba79ed76f093c43e1e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 21 Dec 2022 10:41:23 +0100 Subject: [PATCH] Add missing NBARGS definition --- mpv.controller.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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