Skip to content

Commit 33ce0cb

Browse files
committed
refactor(hack): use ${BASH_SOURCE[0]} to get script name
1 parent a750d80 commit 33ce0cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hack/update-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ set -o pipefail
2626

2727
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
2828

29-
echo "NOTE: $0 has been replaced by 'make update'"
29+
echo "NOTE: ${BASH_SOURCE[0]} has been replaced by 'make update'"
3030
echo
3131
echo "The equivalent of this invocation is: "
3232
echo " make update"

hack/verify-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [[ -n "${KUBE_VERIFY_GIT_BRANCH:-}" ]]; then
3131
ARGHELP="BRANCH=${KUBE_VERIFY_GIT_BRANCH}"
3232
fi
3333

34-
echo "NOTE: $0 has been replaced by 'make verify'"
34+
echo "NOTE: ${BASH_SOURCE[0]} has been replaced by 'make verify'"
3535
echo
3636
echo "The equivalent of this invocation is: "
3737
echo " make verify ${ARGHELP}"

0 commit comments

Comments
 (0)