I am looking for a multiplatform solution that would allow me to check if scp
command is available.
The problem is that scp does not have a --version
command line and when called without parameters it will return with exit code 1
(error).
Update: in case it wasn't clear, by multiplatform I mean a solution that will work on Windows, OS X and Linux without requiring me to install anything.