Skip to content

Commit 8a7ca18

Browse files
authored
Merge pull request #246 from mrLexx/bugfix/drupalconsole
drupalconsole the old way of get DURL was wrong
2 parents 12e5111 + 59b1197 commit 8a7ca18

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Dockerfiles/work/Dockerfile-7.2

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ RUN set -eux \
268268
\
269269
\
270270
# -------------------- drupalconsole --------------------
271-
&& DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')" \
271+
&& DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)" \
272272
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
273273
&& chmod +x /usr/local/bin/drupal \
274274
\

Dockerfiles/work/Dockerfile-7.3

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ RUN set -eux \
269269
\
270270
\
271271
# -------------------- drupalconsole --------------------
272-
&& DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')" \
272+
&& DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)" \
273273
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
274274
&& chmod +x /usr/local/bin/drupal \
275275
\

Dockerfiles/work/Dockerfile-7.4

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ RUN set -eux \
269269
\
270270
\
271271
# -------------------- drupalconsole --------------------
272-
&& DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')" \
272+
&& DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)" \
273273
&& curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal \
274274
&& chmod +x /usr/local/bin/drupal \
275275
\

build/ansible/group_vars/all/work.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ software_available:
993993
7.1:
994994
pre: DURL="https://github.com/hechoendrupal/drupal-console-launcher/releases/download/1.9.4/drupal.phar"
995995
all:
996-
pre: DURL="https://github.com$(curl -sS 'https://github.com/hechoendrupal/drupal-console-launcher/releases' | grep -Eo 'href="/.+drupal.phar"' | head -1 | sed 's/^href="//g' | sed 's/"$//g')"
996+
pre: DURL="$(curl -s https://api.github.com/repos/hechoendrupal/drupal-console-launcher/releases/latest | awk -F\" '/download.*.phar/{print $(NF-1)}' | head -1)"
997997
command: curl -sS -L --fail "${DURL}" -L -o /usr/local/bin/drupal
998998
post: chmod +x /usr/local/bin/drupal
999999
gitflow:

0 commit comments

Comments
 (0)