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:
committed by
Máximo Castañeda
parent
5610706bb6
commit
e4c39f6a93
@@ -388,7 +388,7 @@ if [ $isCD ]; then
|
|||||||
echo "Copying boot image ..."
|
echo "Copying boot image ..."
|
||||||
$cp "$cdBootFloppy" "$outputDir"
|
$cp "$cdBootFloppy" "$outputDir"
|
||||||
|
|
||||||
if [ $(which xorriso) ]; then
|
if command -v xorriso; then
|
||||||
# build the iso image using xorriso
|
# build the iso image using xorriso
|
||||||
echo "Building CD image..."
|
echo "Building CD image..."
|
||||||
xorriso -as mkisofs -r -b `basename $cdBootFloppy` \
|
xorriso -as mkisofs -r -b `basename $cdBootFloppy` \
|
||||||
|
|||||||
Reference in New Issue
Block a user