rapid-night-92661
02/26/2021, 2:33 PMaverage-branch-45579
02/26/2021, 2:46 PMhigh-pencil-62400
02/26/2021, 2:47 PMhigh-pencil-62400
02/26/2021, 2:48 PMrapid-night-92661
02/26/2021, 2:52 PMwooden-king-30682
02/26/2021, 3:06 PMhigh-pencil-62400
02/26/2021, 3:44 PMrapid-night-92661
02/26/2021, 6:49 PMRUN bash -c '[[ $(composer --version) == "1*" ]] && composer global require hirak/prestissimo && rm -rf /home/spryker/.composer/cache || true'
I additionally checked it in container and saw no global library hirak/prestissimo for composer version 1.10.19
1) As far as I remember asterisk symbol for wild card should be after quotes in bash
Incorrect: "1*"
Correct: "1"*
2) But it also will not match because $(composer --version) will return “Composer version 1.10.19 2020-12-04 091416" what can’t be matched with pattern "1"*
In this case this library won’t be installed.
I think this version with variable from ARG COMPOSER_VERSION should work:
RUN bash -c '[[ $COMPOSER_VERSION == "1"* ]] && composer global require hirak/prestissimo && rm -rf /home/spryker/.composer/cache || true'square-ability-13859
02/26/2021, 9:34 PMhigh-pencil-62400
03/01/2021, 8:51 PMhigh-pencil-62400
03/01/2021, 8:59 PMhigh-pencil-62400
03/02/2021, 3:27 PMhigh-pencil-62400
03/02/2021, 3:28 PM