diff options
author | Andres P <aepd87@gmail.com> | 2010-06-19 01:51:09 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-06-20 17:04:57 +0200 |
commit | f5f107674bd34b281681d73a32e4dde1f9d0856f (patch) | |
tree | 59b4484b947fe4bdb837da2a8fad59d8fd37afca | |
parent | 1b93a116e73050d2a037843647b961432b2a0dc8 (diff) | |
download | pacman-f5f107674bd34b281681d73a32e4dde1f9d0856f.tar.gz pacman-f5f107674bd34b281681d73a32e4dde1f9d0856f.tar.xz |
makepkg: use parameter expansion instead of basename
Signed-off-by: Andres P <aepd87@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
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 |