From 5738f40aa94c97dc5393703900a20ae2f79b2045 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Thu, 16 Sep 2021 10:50:02 +0300 Subject: mkarchiso: redirect command -v output to /dev/null The output is irrelevant, we only need the return code. Related to #148. --- archiso/mkarchiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archiso/mkarchiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index eb30e04..38aad06 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -748,7 +748,7 @@ _validate_requirements_airootfs_image_type_ext4+squashfs() { } _validate_requirements_airootfs_image_type_erofs() { - if ! command -v mkfs.erofs; then + if ! command -v mkfs.erofs &> /dev/null; then (( validation_error=validation_error+1 )) _msg_error "Validating '${airootfs_image_type}': mkfs.erofs is not available on this host. Install 'erofs-utils'!" 0 fi -- cgit v1.2.3-70-g09d2