Skip to content

Commit 89e344a

Browse files
hanoiistasadevtyler36
authored
refactor: improve install.yaml examples (#78)
Co-authored-by: Stanislav Zhuk <[email protected]> Co-authored-by: tyler36 <[email protected]>
1 parent ef47462 commit 89e344a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

install.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ pre_install_actions:
1717

1818
# - "docker volume rm ddev-${DDEV_PROJECT}_solr 2>/dev/null || true"
1919

20-
# You can also check for client DDEV version with ddev_version_constraint (see below).
20+
# Use this example to perform different actions based on the DDEV version.
21+
# If you only need a version constraint, use ddev_version_constraint instead (see below).
2122
# - |
22-
# #ddev-description:Checking DDEV version
23-
# if ! ( ddev debug capabilities 2>/dev/null | grep corepack >/dev/null 2>&1 ) ; then
24-
# echo "This add-on requires DDEV v1.23+ or higher, please upgrade." && exit 2
23+
# #ddev-description:Show a message for v1.24.7+
24+
# if ${DDEV_EXECUTABLE} debug match-constraint ">= 1.24.7" 2>/dev/null ; then
25+
# echo "Using DDEV v1.24.7+, running extra actions..."
2526
# fi
2627

2728
# - 'echo "what is your platform.sh token" && read x'

0 commit comments

Comments
 (0)