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

use strict bash variable references #6

Open
ahmetb opened this issue Oct 28, 2019 · 0 comments
Open

use strict bash variable references #6

ahmetb opened this issue Oct 28, 2019 · 0 comments

Comments

@ahmetb
Copy link

ahmetb commented Oct 28, 2019

right now when any $VARIABLE is not set, it will not fail and use empty string.

either:

  • use set -u, or
  • use each reference as "${VARIABLE:? VARIABLE not set}"

this will ensure when something is not set, it will be very easy to debug.

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

No branches or pull requests

1 participant