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 | aa7b663ef92a70615bc012f5241907f867f5c87f (patch) | |
tree | 4a3baf6dd27d39261c74b34802d190ba74fa389b /eclass/systemd.eclass | |
parent | Fix unnecessary $(). (diff) | |
download | gentoo-2-aa7b663ef92a70615bc012f5241907f867f5c87f.tar.gz gentoo-2-aa7b663ef92a70615bc012f5241907f867f5c87f.tar.bz2 gentoo-2-aa7b663ef92a70615bc012f5241907f867f5c87f.zip |
Replace basename usage with a shell parameter replacement.
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r-- | eclass/systemd.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
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}" |