Last active
December 14, 2021 00:42
-
-
Save jerbob92/8f9053fda37947104e82836afdabac93 to your computer and use it in GitHub Desktop.
Check whether Drupal 7.59 and 8.5.3 are released
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |
This is perfect! Made a version with KDE notification support https://gist.github.com/codeincarnate/65739a3e5a156b3b09915127018ec218
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
Usage:
To check every 10 seconds.