Skip to content

Commit

Permalink
Update start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
NavyStack authored Feb 3, 2024
1 parent c341e46 commit e841867
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions googlebot/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ ipv4_comma_output="googlebot/ipv4_comma.txt"
ipv6_comma_output="googlebot/ipv6_comma.txt"
timestamp_file="googlebot/timestamp.txt"

# Remove existing timestamp file
rm -f "$timestamp_file"
# Check if timestamp file exists and remove it
if [ -e "$timestamp_file" ]; then
rm "$timestamp_file"
fi

# Download public GoogleBot IP ranges
curl -s https://developers.google.com/search/apis/ipranges/googlebot.json > "$json_file"
Expand Down

0 comments on commit e841867

Please sign in to comment.