fix ask for old configline
This commit is contained in:
parent
ffad3e327b
commit
e7bdf139d7
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue