mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-12-28 15:20:51 +00:00
samples: Have 2 more files shellcheck'ed
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
6d951a7a35
commit
fdb2b546d4
@ -36,4 +36,7 @@ EXTRA_DIST= \
|
||||
|
||||
.PHONY: syntax-check
|
||||
syntax-check:
|
||||
shellcheck swtpm-create-tpmca
|
||||
shellcheck \
|
||||
swtpm-create-tpmca \
|
||||
swtpm-create-user-config-files.in \
|
||||
swtpm-localca.in
|
||||
|
||||
@ -23,15 +23,15 @@ function main() {
|
||||
--overwrite) flags="${flags},overwrite";;
|
||||
--root) flags="${flags},root";;
|
||||
--skip-if-exist) flags="${flags},skip-if-exist";;
|
||||
--help|-h|-?) help $0; exit 0;;
|
||||
*) echo -e "Unknown option $1\n" >&2; help $0; exit 1;;
|
||||
--help|-h|-?) help "$0"; exit 0;;
|
||||
*) echo -e "Unknown option $1\n" >&2; help "$0"; exit 1;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
[ "${flags:0:1}" = "," ] && flags=${flags:1}
|
||||
|
||||
@BINDIR@/swtpm_setup --create-config-files ${flags}
|
||||
@BINDIR@/swtpm_setup --create-config-files ${flags:+${flags}}
|
||||
exit $?
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user