Commit 80faff93 authored by Waldek Maleska's avatar Waldek Maleska Committed by Waldek Maleska

Update doc/ci/ssh_keys/README.md

Use `command -v` instead of `which` command
as this is a better and more portable practice

Resolves 
#220169
parent 60a08fe7
......@@ -66,7 +66,7 @@ to access it. This is where an SSH key pair comes in handy.
## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image)
##
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
##
## Run ssh-agent (inside the build environment)
......
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