From 461b19c4786cf09b55b0a1f43a50d8b62c88b280 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 22 Oct 2005 02:32:48 +0000 Subject: touchup quoting --- eclass/eutils.eclass | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'eclass/eutils.eclass') diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 6c1f06560218..62dbaaecf993 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.211 2005/10/21 18:24:23 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.212 2005/10/22 02:32:48 vapier Exp $ # # Author: Martin Schlemmer # @@ -1012,7 +1012,7 @@ unpack_pdv() { [[ -z ${src} ]] && die "Could not locate source for '$1'" [[ -z ${sizeoff_t} ]] && die "No idea what off_t size was used for this pdv :(" - local shrtsrc="`basename ${src}`" + local shrtsrc=$(basename "${src}") echo ">>> Unpacking ${shrtsrc} to ${PWD}" local metaskip=`tail -c ${sizeoff_t} ${src} | hexdump -e \"%i\"` local tailskip=`tail -c $((${sizeoff_t}*2)) ${src} | head -c ${sizeoff_t} | hexdump -e \"%i\"` @@ -1094,9 +1094,8 @@ unpack_makeself() { local shrtsrc=$(basename "${src}") echo ">>> Unpacking ${shrtsrc} to ${PWD}" - if [ -z "${skip}" ] - then - local ver="`grep -a '#.*Makeself' ${src} | awk '{print $NF}'`" + if [[ -z ${skip} ]] ; then + local ver=$(grep -a '#.*Makeself' "${src}" | awk '{print $NF}') local skip=0 exe=tail case ${ver} in -- cgit v1.2.3-65-gdbad