Skip to content

Commit

Permalink
scripts/auto-bootstraps/dobootstrap: handle unfetchable bootstrap script
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Jan 14, 2024
1 parent 5847675 commit 02f3aa2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/auto-bootstraps/dobootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ do_prepare() {
bootstrap=${OVERRIDE_EPREFIX:-bootstrap${bitw}-${dte}}/bootstrap-prefix.sh
elif [[ -n ${DOLOCAL} ]] ; then
bootstrap=${BOOTSTRAP}
else
fi
if [[ ! -e ${bootstrap} ]] ; then
bootstrap=dobootstrap-do_prepare-$$
do_fetch ${BOOTURL} > ${bootstrap}
fi
Expand Down Expand Up @@ -144,7 +145,7 @@ do_prepare() {
echo $((endtime - starttime)) > elapsedtime

# get identification of host that includes Linux distro, RAP, ...
chost=$(${BASH} ${bootstrap} chost.identify x)
chost=$(${BASH} ./bootstrap-prefix.sh chost.identify x)

rsync -q /dev/null ${UPLOAD}/${HOSTNAME}-$$/
rsync -q /dev/null ${UPLOAD}/${HOSTNAME}-$$/${chost}/
Expand Down Expand Up @@ -200,7 +201,7 @@ case $1 in
;;
*)
bitw=
if [[ ${0} == /net/* ]] ; then
if [[ ${0} == /net/* || ${0} == /System/* ]] ; then
echo "internal host, activating local and DOPUBLISH"
export DOLOCAL=1
export DOPUBLISH=1
Expand Down

0 comments on commit 02f3aa2

Please sign in to comment.