Jelajahi Sumber

Clear vars on branch testing

Antony Messerli 9 tahun lalu
induk
melakukan
0dd7bb2430
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/utils.ipxe

+ 3 - 1
src/utils.ipxe

@@ -59,13 +59,15 @@ boot
 goto utils_exit
 
 :testpr
+clear github_user
+clear github_hash
 echo This will chainload into a testing branch of netboot.xyz.  You'll need to enter
 echo your Github User and the first part of the commit hash of the commit you want
 echo to test or the branch name.  This assumes you are testing from a netboot.xyz 
 echo repo.
 echo
 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 -n Specify branch name or 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 || echo Unable to find branch... && sleep 5 && goto utils_exit