mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2025-11-04 21:15:32 +01:00
Made prepare-linux.sh not clobber on already prepared .bashrc
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user