projects
/
clearscm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdddbe9
)
Changed setup_rc to check to see if we were already setup.
author
Andrew DeFaria
<Andrew@DeFaria.com>
Tue, 7 Nov 2017 22:35:05 +0000
(14:35 -0800)
committer
Andrew DeFaria
<Andrew@DeFaria.com>
Tue, 7 Nov 2017 22:35:05 +0000
(14:35 -0800)
rc/setup_rc
patch
|
blob
|
history
diff --git
a/rc/setup_rc
b/rc/setup_rc
index
14fc987
..
dfb5786
100755
(executable)
--- a/
rc/setup_rc
+++ b/
rc/setup_rc
@@
-53,6
+53,16
@@
if [ ! -d $HOME/.rc ]; then
exit 1
fi
+# Check to see if we were already setup
+if [ "$symlink" = "->" ]; then
+ to=$(stat -c %N ~/.bashrc | awk '{print $NF}')
+
+ if [[ "$to" =~ .rc\/bash_login ]]; then
+ echo "Already setup"
+ exit
+ fi
+fi
+
ReplaceFile "$HOME/.Xdefaults" "$HOME/.rc/Xdefaults"
ReplaceFile "$HOME/.bash_login" "$HOME/.rc/bash_login"
ReplaceFile "$HOME/.bashrc" "$HOME/.rc/bash_login"