mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-18 20:07:06 +00:00
WIP -- fixing some shellcheck issues in scope
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
mkdir -p /var/run/weave
|
||||
|
||||
for arg in $@; do
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
--no-app|--probe-only|--service-token*|--probe.token*)
|
||||
touch /etc/service/app/down
|
||||
@@ -13,6 +13,7 @@ for arg in $@; do
|
||||
esac
|
||||
done
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
ARGS=("$@")
|
||||
|
||||
typeset -p ARGS >/var/run/weave/scope-app.args
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /var/run/weave/scope-app.args
|
||||
|
||||
|
||||
exec -a scope-app /home/weave/scope --mode app "${ARGS[@]}"
|
||||
|
||||
Reference in New Issue
Block a user