diff --git a/wait-for-it.sh b/wait-for-it.sh index 5cef902..cfe051c 100755 --- a/wait-for-it.sh +++ b/wait-for-it.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Use this script to test if a given TCP host/port are available -cmdname=$(basename $0) +cmdname=${0##*/} echoerr() { if [[ $QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }