From a28c914ebd8649d1f0e7ecc692489cd1529d4116 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 13 Apr 2013 22:49:21 +0000 Subject: Replace basename usage with a shell parameter replacement. --- eclass/ChangeLog | 5 ++++- eclass/systemd.eclass | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'eclass') diff --git a/eclass/ChangeLog b/eclass/ChangeLog index d6df9d70fc58..8069ba5c8917 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.787 2013/04/13 22:35:53 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.788 2013/04/13 22:49:21 floppym Exp $ + + 13 Apr 2013; Mike Gilbert systemd.eclass: + Replace basename usage with a shell parameter replacement. 13 Apr 2013; Michał Górny systemd.eclass: Use pkg-config to query systemd directories. diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass index 329d6cc63e45..166c7beadd13 100644 --- a/eclass/systemd.eclass +++ b/eclass/systemd.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.24 2013/04/13 22:36:51 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.25 2013/04/13 22:49:21 floppym Exp $ # @ECLASS: systemd.eclass # @MAINTAINER: @@ -179,7 +179,7 @@ systemd_enable_service() { local target=${1} local service=${2} local ud=$(_systemd_get_unitdir) - local destname=$(basename "${service}") + local destname=${service##*/} dodir "${ud}"/"${target}".wants && \ dosym ../"${service}" "${ud}"/"${target}".wants/"${destname}" -- cgit v1.2.3-65-gdbad