Skip to content

Instantly share code, notes, and snippets.

@jerbob92
Created March 28, 2018 19:04
Show Gist options
  • Save jerbob92/6ffce04c5f63ea1baa0945ec8092b4db to your computer and use it in GitHub Desktop.
Save jerbob92/6ffce04c5f63ea1baa0945ec8092b4db to your computer and use it in GitHub Desktop.
Check whether Drupal 7.58 and 8.5.1 are released
#!/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