summaryrefslogtreecommitdiff
path: root/compare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compare.sh')
-rwxr-xr-xcompare.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/compare.sh b/compare.sh
index 1db6a21..7d0dc4c 100755
--- a/compare.sh
+++ b/compare.sh
@@ -13,6 +13,7 @@ else
fi
+# read a whole file line by line
#i=0
#while read line
#do
@@ -35,4 +36,4 @@ lastip=$(echo $lastline | awk '{ print $2 }')
echo "Last = $lastip"
-[ "$lastip" = "$firstip" ] && echo 'match' || echo 'different'
+[ "$lastip" == "$firstip" ] && echo 'match' || echo 'different'