Skip to content
Snippets Groups Projects
Commit 1d4b83a2 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

Use 'command -v' to make shellcheck happy

parent 3046e614
No related branches found
No related tags found
1 merge request!1Make shellcheck happy
......@@ -47,7 +47,7 @@ create_key() {
printf "%s" "$msg"
ssh-keygen -q -f "$file" -N '' "$@"
echo
if which restorecon >/dev/null 2>&1; then
if command -v restorecon >/dev/null 2>&1; then
restorecon "$file" "$file.pub"
fi
ssh-keygen -l -f "$file.pub"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment