fixed interactive shell call method

This commit is contained in:
levasseur
2021-09-20 17:35:50 +02:00
parent 9eb59b5bd4
commit 436fd98625
2 changed files with 3 additions and 4 deletions

2
bash.rc Normal file
View File

@@ -0,0 +1,2 @@
# Very simple bash RC for interactive script debugging
PS1='(init.sh) \u@\h:\w\$ '

View File

@@ -126,10 +126,7 @@ for mod in $MODULE_LIST; do
done done
if [[ $RUN_SHELL == true ]]; then if [[ $RUN_SHELL == true ]]; then
OLD_PS1=$PS1 bash --noprofile --rcfile $MYPATH/bash.rc
export PS1="(init.sh) $PS1"
bash
export PS1=$OLD_PS1
prnt I "Sortie du script après exécution du shell." prnt I "Sortie du script après exécution du shell."
exit 0 exit 0
fi fi