]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
build: fix rrsync manpage fallback
authorZen Dodd <mail@steadytao.com>
Sat, 6 Jun 2026 02:25:48 +0000 (12:25 +1000)
committerAndrew Tridgell <andrew@tridgell.net>
Sat, 6 Jun 2026 04:17:00 +0000 (14:17 +1000)
maybe-make-man

index c7af73934a775ed0f983f988697a16c81e9cfea6..b751ebc53dd4884b550974758a88b41fd7b73d27 100755 (executable)
@@ -15,7 +15,7 @@ if [ ! -f "$flagfile" ]; then
     if "$srcdir/md-convert" --test "$srcdir/rsync-ssl.1.md" >/dev/null 2>&1; then
        touch $flagfile
     else
-       outname=`echo "$inname" | sed 's/\.md$//'`
+       outname=`basename "$inname" .md`
        if [ -f "$outname" ]; then
            exit 0
        elif [ -f "$srcdir/$outname" ]; then