fix ask for old configline

This commit is contained in:
Jakobus Schürz 2020-01-14 15:11:13 +01:00
parent ffad3e327b
commit e7bdf139d7

View file

@ -230,8 +230,8 @@ sshmyshellconfig() {
[ -e /etc/bashrc ] && . /etc/bashrc
[ -e /etc/bash.bashrc ] && . /etc/bash.bashrc
echo "modify ~/.bashrc"
sed -e '/^if \[ -f ~\/bashrc_add \] /d' ~/.bashrc
sed -i -e '/^if \[ -f ~\/bashrc_add \] /d' ~/.bashrc
sed -e '/^\[ -f bashrc_add \] /d' ~/.bashrc
sed -i -e '/\[ -f /bashrc_add \] /d' ~/.bashrc
sed -i -e '/#MYSHELLCONFIG-start/,/#MYSHELLCONFIG-end/d' ~/.bashrc
echo
#printf "%s" "[ -f bashrc_add ] && . bashrc_add" | tee -a ~/.bashrc