Skip to content

Instantly share code, notes, and snippets.

@paddydoyle
Forked from jerbob92/drupal-PSA-003-check.sh
Last active April 25, 2018 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paddydoyle/278ffaa7428ec95e4bd3fe150111aaeb to your computer and use it in GitHub Desktop.
Save paddydoyle/278ffaa7428ec95e4bd3fe150111aaeb to your computer and use it in GitHub Desktop.
Check whether Drupal 7.59 and 8.5.3 are released
#!/bin/sh
url="https://ftp.drupal.org/files/projects/drupal-7.59.tar.gz";
if curl --output /dev/null --silent --head --fail "$url"; then
zenity --notification --text 'Drupal 7 Patch Live';
else
echo "URL does not exist: $url";
fi;
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.tar.gz";
if curl --output /dev/null --silent --head --fail "$url"; then
zenity --notification --text 'Drupal 8 Patch Live';
else
echo "URL does not exist: $url";
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment