diff options
| author | Lars Kellogg-Stedman <lars@oddbit.com> | 2023-08-15 15:44:02 +0000 |
|---|---|---|
| committer | Corvin Köhne <corvink@FreeBSD.org> | 2023-09-21 06:41:48 +0000 |
| commit | c0e249d32c780ee8240fe8b3b8144078a8eec41f (patch) | |
| tree | ec3d3ca15bf22d4875b49ed8e361983bb57fb466 /usr.sbin/bsdinstall/scripts/script | |
| parent | cf7974fd9e554552989237c3d6bc736d672ac7c6 (diff) | |
Diffstat (limited to 'usr.sbin/bsdinstall/scripts/script')
| -rwxr-xr-x | usr.sbin/bsdinstall/scripts/script | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/bsdinstall/scripts/script b/usr.sbin/bsdinstall/scripts/script index 1c617835c274..ae1c6b3011fa 100755 --- a/usr.sbin/bsdinstall/scripts/script +++ b/usr.sbin/bsdinstall/scripts/script @@ -114,13 +114,12 @@ fi bsdinstall mount # Fetch missing distribution files, if any -( - exec 3>&1 - export BSDINSTALL_DISTDIR=$(`dirname $0`/fetchmissingdists 2>&1 1>&3) - FETCH_RESULT=$? - exec 3>&- - return $FETCH_RESULT -) || error "Could not fetch remote distributions" +exec 5>&1 +export BSDINSTALL_DISTDIR=$(`dirname $0`/fetchmissingdists 2>&1 1>&5) +FETCH_RESULT=$? +exec 5>&- + +[ $FETCH_RESULT -ne 0 ] && error "Could not fetch remote distributions" # Unpack distributions bsdinstall checksum |
