summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2009-05-01 21:50:44 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2009-05-01 21:50:44 +0000
commit0c47f531016e992fffd0bed8bded49d4eb4938e1 (patch)
tree3d1bbf6bffb2f513bdf1311222ed763027b40e37 /eclass
parentFix quoting issues, patch by maekke -- bug 258211 (diff)
downloadgentoo-2-0c47f531016e992fffd0bed8bded49d4eb4938e1.tar.gz
gentoo-2-0c47f531016e992fffd0bed8bded49d4eb4938e1.tar.bz2
gentoo-2-0c47f531016e992fffd0bed8bded49d4eb4938e1.zip
Fix quoting issues, patch by maekke -- bug 258217
Diffstat (limited to 'eclass')
-rw-r--r--eclass/nsplugins.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/nsplugins.eclass b/eclass/nsplugins.eclass
index ff082fbfd179..0fff026e2962 100644
--- a/eclass/nsplugins.eclass
+++ b/eclass/nsplugins.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.22 2005/08/04 21:55:06 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/nsplugins.eclass,v 1.23 2009/05/01 21:50:44 nirbheek Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -20,8 +20,8 @@ src_mv_plugins() {
# Move plugins dir. We use keepdir so that it might not be unmerged
# by mistake ...
keepdir /usr/$(get_libdir)/${PLUGINS_DIR}
- cp -a ${D}/$1/* ${D}/usr/$(get_libdir)/${PLUGINS_DIR}
- rm -rf ${D}/$1
+ cp -a "${D}"/$1/* "${D}"/usr/$(get_libdir)/${PLUGINS_DIR}
+ rm -rf "${D}"/$1
dosym /usr/$(get_libdir)/${PLUGINS_DIR} $1
}
@@ -31,11 +31,11 @@ src_mv_plugins() {
pkg_mv_plugins() {
# Move old plugins dir
- if [ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ]
+ if [[ -d "${ROOT}/$1" -a ! -L "${ROOT}/$1" ]]
then
- mkdir -p ${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}
- cp -a ${ROOT}/$1/* ${ROOT}/usr/$(get_libdir)/${PLUGINS_DIR}
- rm -rf ${ROOT}/$1
+ mkdir -p "${ROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
+ cp -a "${ROOT}"/$1/* "${ROOT}"/usr/$(get_libdir)/${PLUGINS_DIR}
+ rm -rf "${ROOT}"/$1
fi
}