Back to cheatsheets
Shell
Check if command exists in Bash
if
!
(
command
-v
go
);
then
# Do something
fi