Issue #3500131: Fix launcher script counter
2 unresolved threads
Merge request reports
Activity
added 1 commit
- dd27a2be - Run jq from docker only if docker command is available
- Resolved by Stas Zhuk
- Resolved by Stas Zhuk
Left two comments with suggestions. And I've manually tested and the proposed code fixes the two problems summarized in https://www.drupal.org/project/drupal_cms/issues/3500131#comment-15945128.
Edited by Ralf Kolleradded 11 commits
-
3cb6ae35...842d2523 - 5 commits from branch
project:1.x
- 191fefe6 - Issue #3500131: Fix launch script counter
- 09917a37 - Run jq from docker only if docker command is available
- 77e0a314 - Fixing tests
- 901b1618 - Remove empty line
- 63a22710 - Make comments clearer
- f6b4f39a - Handle underscores and spaces
Toggle commit list-
3cb6ae35...842d2523 - 5 commits from branch
added 9 commits
-
f6b4f39a...3be66b42 - 2 commits from branch
project:1.x
- 9ac8e7e7 - Issue #3500131: Fix launch script counter
- ff061c35 - Run jq from docker only if docker command is available
- a0b0696a - Fixing tests
- 82ef7f67 - Remove empty line
- 2028186c - Make comments clearer
- 6e9eaa87 - Handle underscores and spaces
- 1dc9cac9 - Disable env that can break `ddev debug cd`
Toggle commit list-
f6b4f39a...3be66b42 - 2 commits from branch
17 # Check if DDEV is installed. 18 if ! command -v ddev >/dev/null 2>&1; then 16 19 echo "DDEV needs to be installed. Visit https://ddev.com/get-started for instructions." 17 20 exit 1 18 21 fi 19 22 20 NAME=$(basename $PWD) 21 # If there are any other DDEV projects in this system with this name, add a numeric suffix. 22 declare -i n=$(ddev list | grep --count "$NAME") 23 if [ $n > 0 ]; then 24 NAME=$NAME-$(expr $n + 1) 23 # Check if DDEV meets the required version constraint. 24 if ! ddev debug match-constraint 2>&1 | grep -q match-constraint || ! ddev debug match-constraint "$DDEV_VERSION_CONSTRAINT" >/dev/null 2>&1; then 25 echo "Your DDEV version doesn't meet the constraint '$DDEV_VERSION_CONSTRAINT'. Please update to a DDEV version that meets this constraint." 26 exit 1 27 fi 37 if ! ddev describe "$NAME" >/dev/null 2>&1; then 38 break 39 fi 40 NAME="$ORIGINAL_NAME-$SUFFIX" 41 done 42 # Configure the new DDEV project. 43 ddev config --project-type=drupal11 --docroot=web --php-version=8.3 --ddev-version-constraint="$DDEV_VERSION_CONSTRAINT" --project-name="$NAME" 44 fi 45 46 CURRENT_DIR="$PWD" 47 # Change directory to the project root. 48 cd "$(DDEV_VERBOSE=false DDEV_DEBUG=false ddev debug cd "" --get-approot)" 49 50 if [ "$PWD" != "$CURRENT_DIR" ]; then 51 echo "You're trying to set up a Drupal CMS inside an existing project in $PWD, refusing to do it." 52 exit 1
Please register or sign in to reply