X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/b73b51a9e4a196dc352c3336064bcc21f82797e9..d96d3893ddc9d5b2d3cb8405d2fccb5b75a8b717:/testsuite/rsync.fns diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns index 41f3354b..f9660d62 100644 --- a/testsuite/rsync.fns +++ b/testsuite/rsync.fns @@ -241,5 +241,10 @@ test_xfail() { exit 78 } +# Test whether something is a link, allowing for shell peculiarities +is_a_link() { + test -L "$1" || test -h "$1" || /usr/bin/test -L "$1" || /usr/bin/test -h "$1" +} + # be reproducible umask 077 \ No newline at end of file