For consistency in output with other helpers, check for file existence
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Mar 2009 03:02:30 +0000 (03:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Mar 2009 03:02:30 +0000 (03:02 -0000)
before calling install.

svn path=/main/trunk/; revision=13201

bin/ebuild-helpers/doexe

index 9d35c8e0d98d56fc413a995c04ec9f0bf6fa2b21..19e80b2d01c0e129090ddfae349d1b6f3933a800 100755 (executable)
@@ -26,7 +26,9 @@ for x in "$@" ; do
        else
                mysrc="${x}"
        fi
-       if ! install $EXEOPTIONS "$mysrc" "$D$_E_EXEDESTTREE_" ; then
+       if [ -e "$mysrc" ] ; then
+               install $EXEOPTIONS "$mysrc" "$D$_E_EXEDESTTREE_"
+       else
                echo "!!! ${0##*/}: $mysrc does not exist" 1>&2
                false
        fi