Skip to content

Improve error handling in CUDA installation script - #324

Open
Flamefire wants to merge 1 commit into
EESSI:mainfrom
Flamefire:patch-3
Open

Flamefire wants to merge 1 commit into
EESSI:mainfrom
Flamefire:patch-3

Conversation

@Flamefire

Copy link
Copy Markdown
Contributor

When an exported EASYBUILD_ variable is misspelled eb invocations will fail. As no logfile is created this results in a cp -a . creating another error message.

Check each eb invocation and report errors on failure. Also switch from using $ret for return code checking to plain if to avoid missing a check.

I ran into this when setting EASYBUILD_BUILD_DIR, extra underscore.

Note the ret=$? which is never checked for

When an exported EASYBUILD_ variable is misspelled `eb` invocations will fail.
As no logfile is created this results in a `cp -a .` creating another error message.

Check each `eb` invocation and report errors on failure. Also switch from using `$ret` for return code checking to plain `if` to avoid missing a check.
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

Successfully merging this pull request may close these issues.

1 participant