forked from latchset/clevis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luks: get rid of bashisms in clevis-luks-common-functions
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'
- Loading branch information
1 parent
0bea5c4
commit a66f0ae
Showing
2 changed files
with
85 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters