Resolve SC2029: 'this expands on client side'

https://github.com/koalaman/shellcheck/wiki/SC2029

This patch addes inline directives where this is the desired behavior,
instead of globaly excluding the check.
This commit is contained in:
Dan Callahan
2015-11-01 08:46:00 -06:00
parent 279c49f084
commit 344d48e01b
2 changed files with 3 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ if [[ ! -z $DOKKU_HOST ]]; then
fi
if [[ -z "$donotshift" ]]; then
# shellcheck disable=SC2029
ssh -o LogLevel=QUIET -t "dokku@$DOKKU_HOST" "$@"
exit $?
fi
@@ -119,7 +120,7 @@ if [[ ! -z $DOKKU_HOST ]]; then
done
fi
fi
# shellcheck disable=SC2086
# shellcheck disable=SC2086,SC2029
ssh -o LogLevel=QUIET -t "dokku@$DOKKU_HOST" $long_args "$verb" "$appname" "${args[@]}"
}