build: use command -v instead of which

Change-Id: Iec85bc1a2d5f2f3a88eae66ae1883c1301e1d3ba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8875
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Máximo Castañeda <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
This commit is contained in:
Pascal Abresch
2025-02-03 14:13:34 +00:00
committed by Máximo Castañeda
parent 5610706bb6
commit e4c39f6a93
+1 -1
View File
@@ -388,7 +388,7 @@ if [ $isCD ]; then
echo "Copying boot image ..."
$cp "$cdBootFloppy" "$outputDir"
if [ $(which xorriso) ]; then
if command -v xorriso; then
# build the iso image using xorriso
echo "Building CD image..."
xorriso -as mkisofs -r -b `basename $cdBootFloppy` \