[pacman-dev] [PATCH 11/15] makepkg: use parameter expansion instead of basename

Allan McRae allan at archlinux.org
Sun Jun 20 07:23:39 EDT 2010


On 19/06/10 09:51, Andres P wrote:
> Signed-off-by: Andres P<aepd87 at gmail.com>
> ---

Signed-off-by: Allan

>   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 deae2bb..536da30 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -325,7 +325,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



More information about the pacman-dev mailing list