File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
core/tabs/system-setup/arch Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,17 @@ installDeps() {
1313 for kernel in $installed_kernels ; do
1414 header=" ${kernel} -headers"
1515 printf " %b\n" " ${CYAN} Installing headers for $kernel ...${RC} "
16- " $ESCALATION_TOOL " " $PACKAGER " -S --needed --noconfirm " $header "
16+
17+ if ! " $ESCALATION_TOOL " " $PACKAGER " -S --needed --noconfirm " $header " ; then
18+ printf " %b\n" " ${RED} Failed to install headers.${RC} "
19+ printf " %b" " ${YELLOW} Do you want to continue anyway? [y/N]: ${RC} "
20+ read -r continue_anyway
21+ if ! [ " $continue_anyway " = " y" ] && ! [ " $continue_anyway " = " Y" ]; then
22+ printf " %b\n" " ${RED} Aborting installation.${RC} "
23+ exit 1
24+ fi
25+ printf " %b\n" " ${YELLOW} Continuing...${RC} "
26+ fi
1727 done
1828}
1929
You can’t perform that action at this time.
0 commit comments