summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndres P <aepd87@gmail.com>2010-06-18 19:21:09 -0430
committerAllan McRae <allan@archlinux.org>2010-06-21 01:04:57 +1000
commitf5f107674bd34b281681d73a32e4dde1f9d0856f (patch)
tree59b4484b947fe4bdb837da2a8fad59d8fd37afca /scripts
parent1b93a116e73050d2a037843647b961432b2a0dc8 (diff)
downloadpacman-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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in2
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