From 89daf1feb2eb3c8f8fc4f44cff22386a79cbc874 Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Sun, 5 Mar 2017 13:37:07 -0500 Subject: [PATCH] fixed shift bug in weewx-multi --- util/init.d/weewx-multi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/init.d/weewx-multi b/util/init.d/weewx-multi index cf5f0873..d6d78c6f 100755 --- a/util/init.d/weewx-multi +++ b/util/init.d/weewx-multi @@ -148,7 +148,9 @@ count_procs() { } CMD=$1 -shift +if [ "$1" != "" ]; then + shift +fi INSTANCES="$@" if [ "$INSTANCES" = "" ]; then INSTANCES=$WEEWX_INSTANCES