From 079689f52ffcf48bc071f33fae23a531ecbff9cd Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Tue, 9 May 2023 12:55:26 -0700 Subject: [PATCH] added a check to bashrc install --- extras/Slipstream.install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extras/Slipstream.install b/extras/Slipstream.install index 8aa6f51..e7e0e6b 100755 --- a/extras/Slipstream.install +++ b/extras/Slipstream.install @@ -103,8 +103,9 @@ dry-run-report(){ } install(){ - # If script is run as root, run global install - run echo -e "$codedog_bashrc" >> $HOME/.bashrc.d/70-CodeDog.bashrc && boxborder "bashc.d/70-CodeDog.bashrc installed..." + if [ ! -f $HOME/.bashrc.d/70-CodeDog.bashrc ] ; then + run echo -e "$codedog_bashrc" >> $HOME/.bashrc.d/70-CodeDog.bashrc && boxborder "bashc.d/70-CodeDog.bashrc installed..." + fi export PATH="$PATH:$HOME/devl/CodeDog" # Check for dependent applications and offer to install if ! check-deps ; then