From: Andrew DeFaria Date: Tue, 7 Nov 2017 22:37:52 +0000 (-0800) Subject: Added initial stat command X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=cc7d7d67a7e97060e13d1fcd1bdee2ed64969595;p=clearscm.git Added initial stat command --- diff --git a/rc/setup_rc b/rc/setup_rc index dfb5786..b80e287 100755 --- a/rc/setup_rc +++ b/rc/setup_rc @@ -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}')