Added initial stat command
authorAndrew DeFaria <Andrew@DeFaria.com>
Tue, 7 Nov 2017 22:37:52 +0000 (14:37 -0800)
committerAndrew DeFaria <Andrew@DeFaria.com>
Tue, 7 Nov 2017 22:37:52 +0000 (14:37 -0800)
rc/setup_rc

index dfb5786..b80e287 100755 (executable)
@@ -54,6 +54,8 @@ if [ ! -d $HOME/.rc ]; then
 fi
 
 # Check to see if we were already setup
+symlink=$(stat -c %N ~/.bashrc | awk '{print $2}')
+
 if [ "$symlink" = "->" ]; then
   to=$(stat -c %N ~/.bashrc | awk '{print $NF}')