mirror of
https://github.com/weaveworks/scope.git
synced 2026-04-22 10:27:51 +00:00
Fix various linter issues
Found via shellcheck.
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,9 +13,11 @@ for arg in $@; do
|
||||
esac
|
||||
done
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
ARGS=("$@")
|
||||
|
||||
typeset -p ARGS >/var/run/weave/scope-app.args
|
||||
# shellcheck disable=SC2034
|
||||
typeset -p ARGS >/var/run/weave/scope-probe.args
|
||||
|
||||
exec /home/weave/runsvinit
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source /var/run/weave/scope-app.args
|
||||
|
||||
exec -a scope-app /home/weave/scope --mode app "${ARGS[@]}"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source /var/run/weave/scope-probe.args
|
||||
|
||||
exec -a scope-probe /home/weave/scope --mode probe "${ARGS[@]}"
|
||||
|
||||
Reference in New Issue
Block a user