Kaynağa Gözat

Return to menu if test branch cannot load url

Antony Messerli 9 yıl önce
ebeveyn
işleme
f80cc306a7
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/utils.ipxe

+ 2 - 2
src/utils.ipxe

@@ -9,7 +9,7 @@ item testpr ${space} Test netboot.xyz branch
 choose --default ${menu} menu || goto utils_exit
 echo ${cls}
 goto ${menu} ||
-chain ${menu}.ipxe || goto error
+chain ${menu}.ipxe || goto utils_exit
 goto linux_exit
 
 :hdt
@@ -48,7 +48,7 @@ echo -n Specify Github User Name: ${} && read github_user
 echo -n Specify branch name or shortened commit hash ( i.e. my_feature or 30b7ca ): ${} && read github_hash
 echo
 echo Attempting to chainload:
-chain --autofree https://raw.githubusercontent.com/${github_user}/netboot.xyz/${github_hash}/src/menu.ipxe || goto error
+chain --autofree https://raw.githubusercontent.com/${github_user}/netboot.xyz/${github_hash}/src/menu.ipxe || goto utils_exit
 goto utils_exit
 
 :utils_exit