fixed the way to obtain package lists, mutualised debian familly conf, added separator
This commit is contained in:
12
init.sh
12
init.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user