]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
certctl: don't fall over flat with relative DESTDIR
authorkevans <kevans@FreeBSD.org>
Mon, 18 May 2020 01:35:44 +0000 (01:35 +0000)
committerkevans <kevans@FreeBSD.org>
Mon, 18 May 2020 01:35:44 +0000 (01:35 +0000)
commit95d08621244647414245e9169ac6474127e02178
tree477684810b4484f673597c9b80cd6999c3741f77
parentac4d49e3c2ab7dababbb79acdf0945802f639553
certctl: don't fall over flat with relative DESTDIR

Up until now, all of our DESTDIR use has been with absolute paths. It turned
out that the cd in/out dance we do here breaks us down later on, as the
relative path no longer resolves.

Convert EXTENSIONS to an ERE that we'll use to grep ls -1 of the dir we're
inspecting, rather than cd'ing into it and globbing it up.

MFC after: 3 days
usr.sbin/certctl/certctl.sh