Skip to content

Instantly share code, notes, and snippets.

@jerbob92
Last active December 14, 2021 00:42
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save jerbob92/8f9053fda37947104e82836afdabac93 to your computer and use it in GitHub Desktop.
Save jerbob92/8f9053fda37947104e82836afdabac93 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.zip";
if curl --output /dev/null --silent --head --fail "$url"; then
echo "URL exists: $url";
else
echo "URL does not exist: $url";
fi;
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip";
if curl --output /dev/null --silent --head --fail "$url"; then
echo "URL exists: $url";
else
echo "URL does not exist: $url";
fi;
@jerbob92
Copy link
Author

jerbob92 commented Apr 25, 2018

Usage:

watch -n 10 ./drupal-PSA-003-check.sh

To check every 10 seconds.

@codeincarnate
Copy link

This is perfect! Made a version with KDE notification support https://gist.github.com/codeincarnate/65739a3e5a156b3b09915127018ec218

@paddydoyle
Copy link

Thanks! Similar version for Gnome notification: https://gist.github.com/paddydoyle/278ffaa7428ec95e4bd3fe150111aaeb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment