diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-04-13 22:49:21 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-04-13 22:49:21 +0000 |
commit | a28c914ebd8649d1f0e7ecc692489cd1529d4116 (patch) | |
tree | c7415a27ca699da0de72b65a7f500ad35a89bd81 /eclass | |
parent | Fix unnecessary $(). (diff) | |
download | historical-a28c914ebd8649d1f0e7ecc692489cd1529d4116.tar.gz historical-a28c914ebd8649d1f0e7ecc692489cd1529d4116.tar.bz2 historical-a28c914ebd8649d1f0e7ecc692489cd1529d4116.zip |
Replace basename usage with a shell parameter replacement.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/systemd.eclass | 4 |
2 files changed, 6 insertions, 3 deletions
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 <floppym@gentoo.org> systemd.eclass: + Replace basename usage with a shell parameter replacement. 13 Apr 2013; Michał Górny <mgorny@gentoo.org> 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}" |