Skip to content

Commit

Permalink
Fixes drupal version download issue on drupal 10
Browse files Browse the repository at this point in the history
  • Loading branch information
jimyhuang committed Nov 24, 2023
1 parent 36113b6 commit 7d5da9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/drupal-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ -z $1 ]; then
exit;
fi
VERSION_PREFIX=$1
LATEST_VERSION=$(curl -s "https://www.drupal.org/node/3060/release/feed?version=$VERSION_PREFIX" | grep '<title>drupal' | head -1 | sed 's/[^0-9.]*//g' | tr -d '\n')
LATEST_VERSION=$(curl -s "https://www.drupal.org/node/3060/release/feed?version=$VERSION_PREFIX" | grep '<title>drupal' | grep -v 'alpha\|beta\|dev' | head -1 | sed 's/[^0-9.]*//g' | tr -d '\n')

if [ -d /tmp/drupal-${LATEST_VERSION} ]; then
echo "Directory /tmp/drupal-${LATEST_VERSION} exists. Delete directory for download newest file."
Expand Down

0 comments on commit 7d5da9d

Please sign in to comment.