mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: use parameter expansion instead of basename
Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
1b93a116e7
commit
f5f107674b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user