diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 17:12:16 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-01-01 22:04:41 -0500 |
commit | 12507975408257ff24f1f367b8b3b842fa779f1f (patch) | |
tree | 018723453cca7ee2ffc2c2f9040dbc4c2b70fb83 | |
parent | baf990333197d42fc25e3220b2bbc97ea03d88a4 (diff) |
use ${0##*/} instead of basename in "usage:" text
-rwxr-xr-x | create-repo | 2 | ||||
-rwxr-xr-x | db-check-nonfree | 2 | ||||
-rwxr-xr-x | db-list-unsigned-packages | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/create-repo b/create-repo index f77fa24..24b890d 100755 --- a/create-repo +++ b/create-repo @@ -5,7 +5,7 @@ . "$(dirname "$(readlink -e "$0")")/config" if [ $# -eq 0 ]; then - msg "Usage: $0 repo1 [repo2 ... repoX]" + msg "Usage: ${0##*/} repo1 [repo2 ... repoX]" exit 1 fi diff --git a/db-check-nonfree b/db-check-nonfree index ba5f5aa..661daa6 100755 --- a/db-check-nonfree +++ b/db-check-nonfree @@ -4,7 +4,7 @@ . "$(dirname "$(readlink -e "$0")")/config" if [ $# -ge 1 ]; then - warning "Calling $(basename $0) with a specific repository is not supported" + warning "Calling ${0##*/} with a specific repository is not supported" exit 1 fi diff --git a/db-list-unsigned-packages b/db-list-unsigned-packages index 4e90d42..985d1c0 100755 --- a/db-list-unsigned-packages +++ b/db-list-unsigned-packages @@ -24,7 +24,7 @@ set -e . "$(dirname "$(readlink -e "$0")")/config" if [ $# -lt 1 ]; then - msg "usage: $(basename $0) <architecture>" + msg "usage: ${0##*/} <architecture>" exit 1 fi |