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

[wip] luks: get rid of bashisms in clevis-luks-common-functions #205

Closed
wants to merge 1 commit into from

Conversation

sergio-correia
Copy link
Collaborator

As suggested in #202, let's try to define some sort of style guide
to try to improve portability and consistency across the scripts.

The suggestions include:

  • getting rid of bashisms, at least for scripts running in early
    userland
  • running with "set -e" and "set -u"
  • using $() instead of backticks
  • using long form of `jose' commands, for better readability

This commit converts clevis-luks-common-function and its user
clevis-luks-list.

As of now, shellcheck complains of the following:
"SC2039: In POSIX sh, 'local' is undefined."

This can be muted with `shellcheck -eSC2039'

As suggested in latchset#202, let's try to define some sort of style guide
to try to improve portability and consistency across the scripts.

The suggestions include:

- getting rid of bashisms, at least for scripts running in early
  userland
- running with "set -e" and "set -u"
- using $() instead of backticks
- using long form of `jose' commands, for better readability

This commit converts clevis-luks-common-function and its user
clevis-luks-list.

As of now, shellcheck complains of the following:
"SC2039: In POSIX sh, 'local' is undefined."

This can be muted with `shellcheck -eSC2039'
@sergio-correia sergio-correia marked this pull request as draft August 11, 2020 12:10
@sergio-correia sergio-correia changed the title luks: get rid of bashisms in clevis-luks-common-functions [wip] luks: get rid of bashisms in clevis-luks-common-functions Oct 13, 2020
@sergio-correia
Copy link
Collaborator Author

Closing this for now.

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