From: Zac Medico Date: Sat, 14 Apr 2007 19:21:01 +0000 (-0000) Subject: revise tests so that does not trigger an error (trunk r6400:6401) X-Git-Tag: v2.1.2.4~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56e8e6e653364e187f7e78c7349c9f9235bb6602;p=portage.git revise tests so that does not trigger an error (trunk r6400:6401) svn path=/main/branches/2.1.2/; revision=6404 --- 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}"