]> git.ipfire.org Git - thirdparty/git.git/commit
ci: make failure to find perforce more user friendly
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Thu, 12 May 2022 22:39:37 +0000 (15:39 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 May 2022 22:43:07 +0000 (15:43 -0700)
commitcde6b9b78d8c2c6d3436c59f91e09901026e6f8f
tree519b44134af9f6e9970f66d4cdcc3caccec0dd62
parent6cd33dceed60949e2dbc32e3f0f5e67c4c882e1e
ci: make failure to find perforce more user friendly

In preparation for a future change that will make perforce installation
optional in macOS, make sure that the check for it is done without
triggering scary looking errors and add a user friendly message instead.

All other existing uses of 'type <cmd>' in our shell scripts that
check the availability of a command <cmd> send both standard output
and error stream to /dev/null to squelch "<cmd> not found" diagnostic
output, but this script left the standard error stream shown.

Redirect it just like everybody else to squelch this error message that
we fully expect to see.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/install-dependencies.sh