File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -207,22 +207,28 @@ install() {
207207 else
208208 WARN " file integrity check failed"
209209 if $no_check_integrity ; then
210+ INFO " skipped integrity check .."
210211 GWARN " skipping integrity check"
212+ LOG " skipping integrity check for \" $DLCACHE /$name .tar.$ext \" "
211213 else
212- if ask " Do you want to retry [ deleteing the file and re-download it? ]" ; then
214+ else
215+ # final exit condition
216+ DIE " Integrity check failed. Exiting gracefully.."
217+ fi
218+ fi
219+ fi if ask " Do you want to retry [ deleteing the file and re-download it? ]" ; then
213220 rm " $DLCACHE /$name .tar.$ext "
214221 download " $name .tar.$ext " " $link "
222+
223+ # recheck integrity after download
215224 if verify_integrity " $DLCACHE /$name .tar.$ext " " $shasum " ; then
216225 LOG " file integrity check passed"
217226 else
227+ # exit condition
218228 GWARN " file integrity check failed"
219229 DIE " Exiting gracefully.."
220230 fi
221- else
222- DIE " Integrity check failed. Exiting gracefully.."
223- fi
224- fi
225- fi
231+
226232
227233 # call proot extract
228234 msg_extract " $DEFAULT_FS_INSTALL_DIR /$name "
You can’t perform that action at this time.
0 commit comments