Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

In vagrant long_descriptions, example code bash variables get substituted #153

Closed
deargle opened this issue Aug 1, 2020 · 3 comments
Closed
Assignees
Labels

Comments

@deargle
Copy link

deargle commented Aug 1, 2020

This is correct most of the time, but breaks the script showing how to pull the latest version of vagrant.

Specifically,

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant\
  | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm

gets rendered on vagrantup.com as:

image

I'm not sure how to fix it, but relevant lines:

LONG_DESCRIPTION=$(envsubst < templates/my_centos.md)

https://unix.stackexchange.com/a/294400

@ruzickap ruzickap added the bug label Aug 2, 2020
@ruzickap ruzickap self-assigned this Aug 2, 2020
@ruzickap
Copy link
Owner

ruzickap commented Aug 2, 2020

Thanks for reporting this - great catch.
I'll fix it asap...
I found some solutions here: https://stackoverflow.com/questions/24963705/is-there-an-escape-character-for-envsubst

@ruzickap
Copy link
Owner

ruzickap commented Aug 2, 2020

The issue should be fixed by #155

@ruzickap
Copy link
Owner

ruzickap commented Aug 9, 2020

It should be fixed in all descriptions.
Thanks for reporting it.

@ruzickap ruzickap closed this as completed Aug 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants