Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorSimon Wilper <sxw@chronowerks.de>2021-01-05 13:04:39 +0000
committerSimon Wilper <sxw@chronowerks.de>2021-05-14 19:46:29 +0200
commit22b57518a6e16ff85224f3aa6601e6b70831e534 (patch)
treef1745657aa67de0e5fb7817ea10906caf9d970a3 /hooks
parentc3914f980fa2c59fa42bc17af73200cf5365bbf9 (diff)
Apply 1 suggestion(s) to 1 file(s)
Diffstat (limited to 'hooks')
-rw-r--r--hooks/archiso2
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/archiso b/hooks/archiso
index 485fb0f..d897ae1 100644
--- a/hooks/archiso
+++ b/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=$?