Skip to content

Instantly share code, notes, and snippets.

@omega8cc
Forked from jerbob92/drupal-PSA-003-check.sh
Created April 25, 2018 16:13
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 omega8cc/bdb99a2c65d4ec8765731e0c9e517fc3 to your computer and use it in GitHub Desktop.
Save omega8cc/bdb99a2c65d4ec8765731e0c9e517fc3 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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment