Made prepare-linux.sh not clobber on already prepared .bashrc

This commit is contained in:
mgeeky 2019-12-05 11:28:42 +01:00
parent 5c58f333cb
commit 7e0bb74f06

View File

@ -558,6 +558,8 @@ find . -name .git | while read line; do
popd popd
done done
if ! grep -q "function killallbyname() {" $ROOT_DIR/.bashrc ; then
# Append some stuff to bashrc # Append some stuff to bashrc
cat <<'EOF' >> $ROOT_DIR/.bashrc cat <<'EOF' >> $ROOT_DIR/.bashrc
@ -836,3 +838,5 @@ alias gitclone='git clone --recurse-submodules'
EOF EOF
sed -i -r "s:~/:$ROOT_DIR/:" $ROOT_DIR/.bashrc sed -i -r "s:~/:$ROOT_DIR/:" $ROOT_DIR/.bashrc
fi