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
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ get_downloadclient() {
|
||||||
# ensure specified program is installed
|
# ensure specified program is installed
|
||||||
local program="${agent%% *}"
|
local program="${agent%% *}"
|
||||||
if [[ ! -x $program ]]; then
|
if [[ ! -x $program ]]; then
|
||||||
local baseprog=$(basename $program)
|
local baseprog="${program##*/}"
|
||||||
error "$(gettext "The download program %s is not installed.")" "$baseprog"
|
error "$(gettext "The download program %s is not installed.")" "$baseprog"
|
||||||
plain "$(gettext "Aborting...")"
|
plain "$(gettext "Aborting...")"
|
||||||
exit 1 # $E_MISSING_PROGRAM
|
exit 1 # $E_MISSING_PROGRAM
|
||||||
|
|
Loading…
Add table
Reference in a new issue