Merge pull request #109516 from kaydxh/master

refactor(hack): use ${BASH_SOURCE[0]} to get script name
This commit is contained in:
Kubernetes Prow Robot 2022-06-03 09:30:44 -07:00 committed by GitHub
commit 0c0b528ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
echo "NOTE: $0 has been replaced by 'make update'"
echo "NOTE: ${BASH_SOURCE[0]} has been replaced by 'make update'"
echo
echo "The equivalent of this invocation is: "
echo " make update"

View File

@ -31,7 +31,7 @@ if [[ -n "${KUBE_VERIFY_GIT_BRANCH:-}" ]]; then
ARGHELP="BRANCH=${KUBE_VERIFY_GIT_BRANCH}"
fi
echo "NOTE: $0 has been replaced by 'make verify'"
echo "NOTE: ${BASH_SOURCE[0]} has been replaced by 'make verify'"
echo
echo "The equivalent of this invocation is: "
echo " make verify ${ARGHELP}"