fixed the way to obtain package lists, mutualised debian familly conf, added separator

This commit is contained in:
2021-11-26 11:40:51 +01:00
parent 4fe284eb59
commit 6db50b3d69
7 changed files with 68 additions and 62 deletions

12
init.sh
View File

@@ -110,6 +110,8 @@ fi
# -- Cannot be a function ends here
# ------------------------------------------------------------------------------
separator
if [[ -n $CHROOT_PATH && -z $CHROOT_DONE ]]; then
chroot_bootstrap $@
prnt I "Normal end of chrooted execution!"
@@ -141,6 +143,8 @@ for mod in $MODULE_LIST; do
done
unset mod
separator
if [[ $RUN_SHELL == true ]]; then
prnt I "Launching an interactive shell..."
bash --rcfile $MYPATH/bash.rc -i
@@ -216,7 +220,7 @@ if [[ $JUMP == true ]]; then
else
prnt I "All checks have been run successfully."
fi
echo
echo && separator && echo
if [[ $KEEPGOING == true ]]; then
echo -e "${BRed}ATTENTION : You asked to continue the script even if error occurs.${DEFAULTCOL}"
@@ -228,8 +232,9 @@ echo -e "${BYellow}If you continue after that step system will have changes!${DE
echo
dump_key_buffer
read -n 1 -rsp $"Press <C> pour key to continue or an other one to stop now..." key
echo
read -n 1 -rsp $"Press <C> pour key to continue or an other one to stop now..." key && echo
echo && separator && echo
if [[ $key == "C" || $key == 'c' ]]; then
# We launch modules one after one
@@ -242,6 +247,7 @@ if [[ $key == "C" || $key == 'c' ]]; then
prnt I "Applying changes for $mod version ${!version}..."
$mod
echo $mod >> $STAGE_FILE # Mark as done for resuming function
separator
done
unset mod
echo