Use -e instead of -a for better cross-shell compatibility. Thanks to exg.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Oct 2006 18:04:10 +0000 (18:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Oct 2006 18:04:10 +0000 (18:04 -0000)
svn path=/main/trunk/; revision=4660

bin/dosed

index 0a5975a20ac343b1e14e9d7dcc4a4144cdaaecca..20f7ba281639966c3944fcb35ca67508b4ca3de6 100755 (executable)
--- a/bin/dosed
+++ b/bin/dosed
@@ -7,7 +7,7 @@ mysed="s:${D}::g"
 
 for x in "$@" ; do
        y="${D}${x}"
-       if [ -a "${y}" ] ; then
+       if [ -e "${y}" ] ; then
                if [ -f "${y}" ] ; then
                        mysrc="${T}/${y##*/}"
                        cp "${y}" "${mysrc}"