From e39db559019bc50e3741acfcad5f8c5ace25b25f Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Tue, 7 Nov 2017 14:55:19 -0800 Subject: [PATCH] Added debug code --- rc/setup_rc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rc/setup_rc b/rc/setup_rc index b80e287..3b3e3ca 100755 --- a/rc/setup_rc +++ b/rc/setup_rc @@ -53,16 +53,23 @@ if [ ! -d $HOME/.rc ]; then 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 + echo "DEBUG: ~/.bashrc is a symlink" >> /tmp/debug.log 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 + else + echo "DEBUG: Not setup yet" >> /tmp/debug.log fi +else + echo "DEBUG: ~/.bashrc is not a symlink. Must setup" >> /tmp/debug.log fi ReplaceFile "$HOME/.Xdefaults" "$HOME/.rc/Xdefaults" -- 2.17.1