fixed interactive shell call method
This commit is contained in:
2
bash.rc
Normal file
2
bash.rc
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Very simple bash RC for interactive script debugging
|
||||||
|
PS1='(init.sh) \u@\h:\w\$ '
|
||||||
5
init.sh
5
init.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user