From c9cdb6d4b933fcd9cd06ff7d0544a3496b9d70bc Mon Sep 17 00:00:00 2001 From: Simon Wilper Date: Tue, 5 Jan 2021 13:04:39 +0000 Subject: Apply 1 suggestion(s) to 1 file(s) --- archiso/initcpio/hooks/archiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archiso/initcpio') diff --git a/archiso/initcpio/hooks/archiso b/archiso/initcpio/hooks/archiso index 485fb0f..d897ae1 100644 --- a/archiso/initcpio/hooks/archiso +++ b/archiso/initcpio/hooks/archiso @@ -72,7 +72,7 @@ _mnt_sfs() { # in case we have pv use it to display copy progress feedback otherwise # fallback to using plain cp - if [ -x /usr/bin/pv ]; then + if command -v pv > /dev/null 2>&1; then echo "" (pv "${img}" > "/run/archiso/copytoram/${img_fullname}") local rc=$? -- cgit v1.2.3-54-g00ecf