pastebin - collaborative debugging tool
kpaste.net RSS


google earth update check
Posted by Admin on Mon 20th Jun 2011 12:57
raw | new post

  1. #!/bin/bash
  2. for file in google-earth-stable_current_i386.deb google-earth-stable_current_amd64.deb; do
  3.         ETAG=$(curl -s --head "http://dl.google.com/linux/direct/$file" | grep ETag)
  4.  
  5.         if ! grep -qs "$ETAG" "$file.etag"; then
  6.                 wget "http://dl.google.com/linux/direct/$file" -O "$file"
  7.                 echo "$ETAG" > "$file.etag"
  8.         fi
  9. done

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at