build: gen-version-i.sh: use `command` to check if git exists
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 26 May 2023 16:14:04 +0000 (12:14 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 31 Aug 2023 14:38:42 +0000 (10:38 -0400)
commit3c98cc77c749cd1532bdd884ff87452c08a2d288
treecd03ff4763d0b60522528aa3d023d790ba65a0e6
parent385ba368d241b12488277e191661a272d2c27d25
build: gen-version-i.sh: use `command` to check if git exists

Use the shell builtin `command` to check if git is a valid command,
instead of `which`.

Change-Id: I2e3b4cc178383be1e34dfddbff0794e6fc7ddf86
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10105
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
src/common/gen-version-i.sh
This page took 0.026269 seconds and 4 git commands to generate.