Created
March 28, 2018 19:04
-
-
Save jerbob92/6ffce04c5f63ea1baa0945ec8092b4db to your computer and use it in GitHub Desktop.
Check whether Drupal 7.58 and 8.5.1 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.58.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.1.zip"; | |
if curl --output /dev/null --silent --head --fail "$url"; then | |
echo "URL exists: $url"; | |
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