diff --git a/elements/cache-url/bin/cache-url b/elements/cache-url/bin/cache-url index a31a8e49..1429c40f 100755 --- a/elements/cache-url/bin/cache-url +++ b/elements/cache-url/bin/cache-url @@ -35,10 +35,10 @@ else fi rcode=$(curl -o $tmp -w '%{http_code}' $url $time_cond) -if [ "$rcode" == "200" ] ; then +if [ "$rcode" = "200" ] ; then echo $success mv $tmp $dest -elif [ "$rcode" == "304" ] ; then +elif [ "$rcode" = "304" ] ; then echo "Server copy has not changed. Using locally cached $url" rm -f $tmp else