From 56e8e6e653364e187f7e78c7349c9f9235bb6602 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 14 Apr 2007 19:21:01 +0000 Subject: revise tests so that does not trigger an error (trunk r6400:6401) svn path=/main/branches/2.1.2/; revision=6404 --- bin/doins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/doins') diff --git a/bin/doins b/bin/doins index 43df6dd26..43e3187cb 100755 --- a/bin/doins +++ b/bin/doins @@ -22,12 +22,12 @@ if [ ${INSDEPTH} -gt 30 ] ; then exit 1 fi -if [ "${INSDESTTREE%${D}*}" == "" ]; then +if [[ ${INSDESTTREE#${D}} != "${INSDESTTREE}" ]]; then vecho "-------------------------------------------------------" 1>&2 vecho "You should not use \${D} with helpers." 1>&2 vecho " --> ${INSDESTTREE}" 1>&2 vecho "-------------------------------------------------------" 1>&2 - #exit 1 + exit 1 fi [ ! -d "${D}${INSDESTTREE}" ] && dodir "${INSDESTTREE}" -- cgit v1.2.3-1-g7c22