Fix various linter issues

Found via shellcheck.
This commit is contained in:
Iago López Galeiras
2017-01-09 16:20:24 +01:00
parent ec0b6dd8d0
commit 43d9f38c5e
34 changed files with 268 additions and 227 deletions

View File

@@ -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

View File

@@ -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[@]}"

View File

@@ -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[@]}"