From 5fe30e7a26be72db05c142300dbbc895ab3a7630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 1 Nov 2017 09:05:58 +0200 Subject: [PATCH] Use parameter expansion instead of basename --- wait-for-it.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }