Skip to content

Instantly share code, notes, and snippets.

@fazni
Forked from jerbob92/drupal-PSA-003-check.sh
Created April 25, 2018 16:47
Show Gist options
  • Save fazni/77e7db329559b77dff14b8524e90d7f1 to your computer and use it in GitHub Desktop.
Save fazni/77e7db329559b77dff14b8524e90d7f1 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