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

"set -u" and "if [ -z ${variable} ]" in ICAFIX/ReApplyFixPipeline.sh #304

Open
joowon-kim opened this issue Sep 27, 2024 · 4 comments
Open

Comments

@joowon-kim
Copy link
Contributor

joowon-kim commented Sep 27, 2024

Dear the HCP team,

"set -u" was set at


and "if [ -z ${variable} ]" was used in the same file at multiple lines.

This raises an error if the variable is undefined. The ${variable} in the if line should be replaced with ${variable:-} like

if [[ "${HCPPIPEDIR:-}" == "" ]]

Best,
Joo-won

@coalsont
Copy link
Member

Ah, I see, specifically FSL_FIX_MCR. We may not have tested compiled mode after that change. The other variables are defined by the script, so they shouldn't trip set -u (even if they are the empty string).

@coalsont
Copy link
Member

Please see if b4f33c5 runs to completion.

@joowon-kim
Copy link
Contributor Author

It works. The same thing is in the multirun pipeline

if [ -z "${FSL_FIX_MCR}" ]; then

@coalsont
Copy link
Member

coalsont commented Oct 2, 2024

Should be fixed by f41f729

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

2 participants