Skip to content

Fix variable reference in deploy hook condition#5463

Open
alexislefebvre wants to merge 1 commit intoplatformsh:mainfrom
alexislefebvre:patch-1
Open

Fix variable reference in deploy hook condition#5463
alexislefebvre wants to merge 1 commit intoplatformsh:mainfrom
alexislefebvre:patch-1

Conversation

@alexislefebvre
Copy link

Why

The dollar sign was missing.

This looked like it would not expand the variable.

See other examples that use a $:

if [ "$PLATFORM_ENVIRONMENT_TYPE" = "production" ]; then

if [ "$PLATFORM_ENVIRONMENT_TYPE" = production ] ; then
echo "This is live on production"
else if [ "$PLATFORM_ENVIRONMENT_TYPE" = staging ] ; then

What's changed

Where are changes

Updates are for:

  • platform (sites/platform templates)
  • upsun (sites/upsun templates)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants