Strip trailing slashes from DESTDIR

Solves duplicate slashes in paths

Scanning //usr/share/certs/trusted for certificates...
Scanning //usr/local/share/certs for certificates...

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/595
This commit is contained in:
Marius van Witzenburg 2022-04-10 22:12:50 +02:00 committed by Warner Losh
parent cfd6acbb55
commit 17720d0bd0

View File

@ -278,6 +278,8 @@ while getopts D:d:M:nUv flag; do
done
shift $(( $OPTIND - 1 ))
DESTDIR=${DESTDIR%/}
: ${METALOG:=${DESTDIR}/METALOG}
INSTALLFLAGS=
[ $UNPRIV -eq 1 ] && INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR}"