Commit 650b8214dab41440f224547085230276c1aa5e4a

Thomas de Grivel 2023-01-28T12:32:27

silent which

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/share/shpkg/shpkg.subr b/share/shpkg/shpkg.subr
index a5e0807..bc0740b 100644
--- a/share/shpkg/shpkg.subr
+++ b/share/shpkg/shpkg.subr
@@ -59,9 +59,9 @@ fi
 
 SHPKG_PREFIX="${SHPKG_DIR}"
 
-if which sha256 >/dev/null; then
+if which sha256 >/dev/null 2>&1; then
     SHPKG_SHA256=sha256
-elif which sha256sum >/dev/null; then
+elif which sha256sum >/dev/null 2>&1; then
     SHPKG_SHA256=sha256sum
 else
     err 1 "sha256 executable not found"