From 3294caf8dae4ea02c3e6a0093b247c3c86d89dba Mon Sep 17 00:00:00 2001
From: Paul de Vrieze <pauldv@gentoo.org>
Date: Tue, 15 Aug 2006 19:43:17 +0000
Subject: Quote targets. Fixes bug #144018

---
 eclass/db.eclass | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'eclass')

diff --git a/eclass/db.eclass b/eclass/db.eclass
index bd997cf02669..5ae256efe5b4 100644
--- a/eclass/db.eclass
+++ b/eclass/db.eclass
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.29 2006/08/06 11:58:51 pauldv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/db.eclass,v 1.30 2006/08/15 19:43:17 pauldv Exp $
 # This is a common location for functions used in the sys-libs/db ebuilds
 #
 # Bugs: pauldv@gentoo.org
@@ -51,10 +51,10 @@ db_fix_so () {
 	target=`find . -maxdepth 1 -type d -name 'db[0-9]*' | sort -n |cut -d/ -f2- | tail -n1`
 	if [ -n "${target}" ] && [ -e "${target}/db.h" ] && ( ! [[ -e db.h ]] || [[ -h db.h ]] ); then
 		einfo "Creating db.h symlinks to ${target}"
-		ln -sf ${target}/db.h .
-		ln -sf ${target}/db_185.h .
+		ln -sf "${target}"/db.h .
+		ln -sf "${target}"/db_185.h .
 	elif [ ! -e "${target}/db.h" ]; then
-		if [ -n ${target} ]; then
+		if [ -n "${target}" ]; then
 			ewarn "Could not find ${target}/db.h"
 		elif [ -h db.h ]; then
 			einfo "Apparently you just removed the last instance of $PN. Removing the symlinks"
-- 
cgit v1.2.3-65-gdbad