From f5f107674bd34b281681d73a32e4dde1f9d0856f Mon Sep 17 00:00:00 2001 From: Andres P Date: Fri, 18 Jun 2010 19:21:09 -0430 Subject: makepkg: use parameter expansion instead of basename Signed-off-by: Andres P Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 1f4df014..e1055885 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -323,7 +323,7 @@ get_downloadclient() { # ensure specified program is installed local program="${agent%% *}" if [[ ! -x $program ]]; then - local baseprog=$(basename $program) + local baseprog="${program##*/}" error "$(gettext "The download program %s is not installed.")" "$baseprog" plain "$(gettext "Aborting...")" exit 1 # $E_MISSING_PROGRAM -- cgit v1.2.3