mkarchiso: redirect command -v output to /dev/null

The output is irrelevant, we only need the return code.

Related to #148.
This commit is contained in:
nl6720 2021-09-16 10:50:02 +03:00
parent ad6d65ab87
commit 5738f40aa9
No known key found for this signature in database
GPG key ID: 5CE88535E188D369

View file

@ -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