revise tests so that does not trigger an error (trunk r6400:6401)
authorZac Medico <zmedico@gentoo.org>
Sat, 14 Apr 2007 19:21:01 +0000 (19:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 14 Apr 2007 19:21:01 +0000 (19:21 -0000)
svn path=/main/branches/2.1.2/; revision=6404

bin/doins

index 43df6dd267ec72ab5b5cda3d7da24757b959e811..43e3187cb2ed4d732604cc82ee4e8d8511793666 100755 (executable)
--- 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}"