From cbe3ba874a1f51d36903173370f46c9571131161 Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Tue, 19 Jul 2016 19:06:37 -0700 Subject: [PATCH] Variable was wrong, -u should work now Never code with migraine :( --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index 0de46bd..5b7f8bf 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -231,12 +231,12 @@ if [ "${AUTOUPDATE}" == "yes" ]; then popd >/dev/null ALLARGS2=() - for A in ${ALLARGS} ; do + for A in ${ALLARGS[@]} ; do if [ ! "${A}" = "-u" ]; then ALLARGS2+=(${A}) fi done - ALLARGS=("${ALLARGS[@]}") + ALLARGS=("${ALLARGS2[@]}") if ! type "$0" 2>/dev/null >/dev/null ; then if [ -f "$0" ]; then