+

Fixed symbolic link existence detection

root [2011-01-17 18:22:24]
Fixed symbolic link existence detection
Filename
install.sh
diff --git a/install.sh b/install.sh
index 03da433..15ecf2f 100644
--- a/install.sh
+++ b/install.sh
@@ -17,7 +17,7 @@ then
 	ASK=1
 	if [ -L $DST ]
 	then
-		D=`ls -l $DST|awk '{print $11}'`
+		D=`ls -l $DST|sed 's/.* -> //'`
 		if [ "$D" = "$SRC" ]
 		then
 			echo "Symbolic link $DST already exist. Pass."
ViewGit