diff --git a/check_rc_upgrade.sh b/check_rc_upgrade.sh index 8cf41c4..635d27a 100755 --- a/check_rc_upgrade.sh +++ b/check_rc_upgrade.sh @@ -78,7 +78,7 @@ do [ $DEBUG -eq 1 ] && echo "Newest : $newest" rm -f $CACHE_FAILED > /dev/null 2>&1 - DOWNLOAD_URL=`cat $tmpfile|grep "$newest"|grep "tar.gz"|head -1|sed 's/.* href="\([^"]*\)" .*$/\1/'` + DOWNLOAD_URL=`cat $tmpfile|grep "$newest"|grep "tar.gz"|head -1|sed 's/.* href="[ \t]*\([^"]*\)[ \t]*" .*$/\1/'` [ $DEBUG -eq 1 ] && echo "Download URL : $DOWNLOAD_URL" [ ! -n "$DOWNLOAD_URL" ] && DOWNLOAD_URL="$CHECK_URL" && [ $DEBUG -eq 1 ] && echo "Use check URL as download URL : $DOWNLOAD_URL"