remove superfluous shellchecks

This commit is contained in:
Matthias Radestock
2017-07-14 09:54:53 +01:00
parent bf8b28ca12
commit 86c9544066

5
scope
View File

@@ -47,7 +47,6 @@ usage() {
Launch options:
EOF
# shellcheck disable=SC2086
docker run --rm --entrypoint=/home/weave/scope "$SCOPE_IMAGE" -h >&2
}
@@ -164,14 +163,12 @@ create_plugins_dir() {
# is not shared from OS X and does not belong to the system."
# In any case, creating /var/run/scope/plugins on Mac OS would not work, as domain
# sockets do not cross VM boundaries. We need this directory to exits on the VM.
# shellcheck disable=SC2086
docker run $USERNS_HOST --rm --entrypoint=/bin/sh \
-v /var/run:/var/run \
"$SCOPE_IMAGE" -c "mkdir -p /var/run/scope/plugins"
}
docker_args() {
# shellcheck disable=SC2086
echo --privileged $USERNS_HOST --net=host --pid=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/run/scope/plugins:/var/run/scope/plugins \
@@ -233,7 +230,6 @@ case "$COMMAND" in
;;
version)
# shellcheck disable=SC2086
docker run --rm --entrypoint=/home/weave/scope "$SCOPE_IMAGE" --mode=version
;;
@@ -276,7 +272,6 @@ case "$COMMAND" in
if check_listen_address_arg; then
echo "Weave Scope is reachable at the address specified with --app.http.address" >&2
else
# shellcheck disable=SC2086
IP_ADDRS=$(docker run --rm $USERNS_HOST --net=host --entrypoint /bin/sh "$SCOPE_IMAGE" -c "$IP_ADDR_CMD")
# shellcheck disable=SC2086
print_app_endpoints $IP_ADDRS