Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate if this notation might be useful to set default env vars for any sh script #425

Open
vdelendik opened this issue Feb 28, 2021 · 0 comments

Comments

@vdelendik
Copy link
Contributor

https://www.cyberciti.biz/tips/bash-shell-parameter-substitution-2.html

The syntax is as follows:
${parameter:-defaultValue}
var=${parameter:-defaultValue}

If parameter not set, use defaultValue.

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

No branches or pull requests

1 participant