Skip to content

Commit b541cae

Browse files
committed
Prevent encoding issues
1 parent 02c5854 commit b541cae

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tasks/pantheon.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ tasks:
3939
cmds:
4040
- |
4141
echo "{{.site}}" | grep -qE '^[a-zA-Z0-9_-]+$' || { echo "ERROR: site must contain only alphanumeric characters, underscores, and hyphens."; exit 1; }
42-
echo "{{default "dev" .clone-from}}" | grep -qE '^[a-zA-Z0-9._-]+$' || { echo "ERROR: clone-from must contain only alphanumeric characters, periods, underscores, and hyphens."; exit 1; }
42+
echo "{{default "dev" (index . "clone-from")}}" | grep -qE '^[a-zA-Z0-9._-]+$' || { echo "ERROR: clone-from must contain only alphanumeric characters, periods, underscores, and hyphens."; exit 1; }
4343
- |
4444
SITE="{{.site}}"
4545
MULTIDEV="{{.multidev}}"
46-
CLONE_FROM="{{default "dev" .clone-from}}"
47-
SKIP_WIPE="{{default "false" .skip-wipe}}"
48-
RUN_INSTALLER="{{default "false" .run-installer}}"
46+
CLONE_FROM="{{default "dev" (index . "clone-from")}}"
47+
SKIP_WIPE="{{default "false" (index . "skip-wipe")}}"
48+
RUN_INSTALLER="{{default "false" (index . "run-installer")}}"
4949
5050
if terminus env:info "$SITE.$MULTIDEV" > /dev/null 2>&1; then
5151
if [ "$SKIP_WIPE" != "true" ]; then
@@ -71,8 +71,8 @@ tasks:
7171
- |
7272
SITE="{{.site}}"
7373
ENVIRONMENT="{{.environment}}"
74-
SKIP_WAIT="{{default "false" .skip-workflow-wait}}"
75-
RUN_INSTALLER="{{default "false" .run-installer}}"
74+
SKIP_WAIT="{{default "false" (index . "skip-workflow-wait")}}"
75+
RUN_INSTALLER="{{default "false" (index . "run-installer")}}"
7676
TIMEOUT="{{default "600" .timeout}}"
7777
7878
if [ "$SKIP_WAIT" != "true" ]; then

0 commit comments

Comments
 (0)