projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added debug code
[clearscm.git]
/
rc
/
setup_rc
diff --git
a/rc/setup_rc
b/rc/setup_rc
index
b80e287
..
3b3e3ca
100755
(executable)
--- a/
rc/setup_rc
+++ b/
rc/setup_rc
@@
-53,16
+53,23
@@
if [ ! -d $HOME/.rc ]; then
exit 1
fi
exit 1
fi
+cat /dev/null > /tmp/debug.log
+
# Check to see if we were already setup
symlink=$(stat -c %N ~/.bashrc | awk '{print $2}')
if [ "$symlink" = "->" ]; then
# Check to see if we were already setup
symlink=$(stat -c %N ~/.bashrc | awk '{print $2}')
if [ "$symlink" = "->" ]; then
+ echo "DEBUG: ~/.bashrc is a symlink" >> /tmp/debug.log
to=$(stat -c %N ~/.bashrc | awk '{print $NF}')
if [[ "$to" =~ .rc\/bash_login ]]; then
to=$(stat -c %N ~/.bashrc | awk '{print $NF}')
if [[ "$to" =~ .rc\/bash_login ]]; then
- echo "
Already setup"
+ echo "
DEBUG: Already setup" >> /tmp/debug.log
exit
exit
+ else
+ echo "DEBUG: Not setup yet" >> /tmp/debug.log
fi
fi
+else
+ echo "DEBUG: ~/.bashrc is not a symlink. Must setup" >> /tmp/debug.log
fi
ReplaceFile "$HOME/.Xdefaults" "$HOME/.rc/Xdefaults"
fi
ReplaceFile "$HOME/.Xdefaults" "$HOME/.rc/Xdefaults"