Fixed symbolic link existence detection
root

root commited on 2011-01-17 18:22:24
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -17,7 +17,7 @@ then
17 17
 	ASK=1
18 18
 	if [ -L $DST ]
19 19
 	then
20
-		D=`ls -l $DST|awk '{print $11}'`
20
+		D=`ls -l $DST|sed 's/.* -> //'`
21 21
 		if [ "$D" = "$SRC" ]
22 22
 		then
23 23
 			echo "Symbolic link $DST already exist. Pass."
24 24