aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bsdinstall/scripts
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2021-11-10 15:39:09 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2021-11-11 15:18:36 +0000
commit4042b356a00e12d6888a4e15e2373453804c5121 (patch)
treec83bf7896fcf92aba9ad9cf81c7162fd89c41b59 /usr.sbin/bsdinstall/scripts
parentd69538633815127b84fe7472cdc44f4b9e6e7780 (diff)
downloadsrc-4042b356a00e12d6888a4e15e2373453804c5121.tar.gz
src-4042b356a00e12d6888a4e15e2373453804c5121.zip
bsdinstall: Fix mirror selection
This is a follow-up to 2697622687708bffd4c3dcfc44f0c977a78e506d, which fixed 2 out of 3 broken uses of the mirrorselect script. Reviewed by: emaste Approved by: emaste (src) MFC after: 7 days Differential Revision: https://reviews.freebsd.org/D32927
Diffstat (limited to 'usr.sbin/bsdinstall/scripts')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/jail2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/jail b/usr.sbin/bsdinstall/scripts/jail
index 3110f744207c..d3a84f872fb6 100755
--- a/usr.sbin/bsdinstall/scripts/jail
+++ b/usr.sbin/bsdinstall/scripts/jail
@@ -103,7 +103,7 @@ FETCH_DISTRIBUTIONS=`echo $FETCH_DISTRIBUTIONS` # Trim white space
if [ -n "$FETCH_DISTRIBUTIONS" -a -z "$BSDINSTALL_DISTSITE" ]; then
exec 3>&1
- BSDINSTALL_DISTSITE=`bsdinstall mirrorselect 2>&1 1>&3`
+ BSDINSTALL_DISTSITE=$(`dirname $0`/mirrorselect 2>&1 1>&3)
MIRROR_BUTTON=$?
exec 3>&-
test $MIRROR_BUTTON -eq 0 || error "No mirror selected"