Commit 02d112a6 authored by ssrq's avatar ssrq

Fix shellcheck errors

parent 205735c2
......@@ -11,6 +11,7 @@ pki_dir="${base_dir}/pki"
# Check if PKI is present
# shellcheck disable=SC2015
test -f "${base_dir}/vars" && test -d "${pki_dir}"|| {
echo 'no-pki'
exit 0
......
......@@ -27,6 +27,7 @@ in
__package easy-rsa --state present
;;
(*)
: "${__type:?}" # make shellcheck happy
printf "Your operating system (%s) is currently not supported by this type (%s)\n" "${os}" "${__type##*/}" >&2
printf "Please contribute an implementation for it if you can.\n" >&2
exit 1
......
......@@ -10,6 +10,7 @@
base_dir=$(cat "${__object:?}/parameter/dir")
pki_dir="${base_dir}/pki"
# shellcheck disable=SC2015
test -f "${base_dir}/vars" && test -d "${pki_dir}"|| {
echo 'no-pki'
exit 0
......
......@@ -27,6 +27,7 @@ in
__package easy-rsa --state present
;;
(*)
: "${__type:?}" # make shellcheck happy
printf "Your operating system (%s) is currently not supported by this type (%s)\n" "${os}" "${__type##*/}" >&2
printf "Please contribute an implementation for it if you can.\n" >&2
exit 1
......
......@@ -28,6 +28,7 @@ in
__package easy-rsa --state present
;;
(*)
: "${__type:?}" # make shellcheck happy
printf "Your operating system (%s) is currently not supported by this type (%s)\n" "${os}" "${__type##*/}" >&2
printf "Please contribute an implementation for it if you can.\n" >&2
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment