commit 1b161b09bc889d17ac0a4ccce2dc3e74b64e1433
parent 4cced2cb91b19ebb648b803cfdcc936148cd6f94
Author: ccx <ccx@te2000.cz>
Date: Tue, 27 Feb 2024 01:37:54 +0000
Detect readlink by using it's canonicalization flag
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/fileset_inc.sh b/bin/fileset_inc.sh
@@ -31,8 +31,7 @@ print_flags() {
$f_o && printf o
}
-# TODO: search $PATH
-if ! test -x /bin/readlink -o -x /usr/bin/readlink; then
+if ! readlink -f . >/dev/null 2>&1; then
# Hackity hack. If you know of better way, let me know.
if test -x /bin/rsync -o -x /usr/bin/rsync; then
readlink() {