From 12507975408257ff24f1f367b8b3b842fa779f1f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 31 Dec 2013 17:12:16 -0500 Subject: use ${0##*/} instead of basename in "usage:" text --- create-repo | 2 +- db-check-nonfree | 2 +- 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) " + msg "usage: ${0##*/} " exit 1 fi -- cgit v1.2.3-2-g168b