commit 65a789fab193ad4aab43f2659aecf6d07653b33c
parent 5b6eed8914aed6c1993440af888c7ff5074870ad
Author: ccx <root@dorje.wpr.cz>
Date: Sat, 25 Jun 2022 21:28:22 +0200
Try to fix confz errors not being caught
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/install b/install
@@ -273,10 +273,11 @@ postinstall() {
if link_changed bzr/containers || link_changed bzr/confz; then
if (( $+confz_verbose )); then
zsh -lc "verbose=1 confz site_containers" </dev/null 2>&1 | cat -v
+ ret=$((${(j.|.)pipestatus})) # Nonzero iff any of commands in pipeline returned nonzero.
else
zsh -lc "quiet=1 confz site_containers" </dev/null 2>&1 | cat -v
+ ret=$((${(j.|.)pipestatus})) # Nonzero iff any of commands in pipeline returned nonzero.
fi
- ret=$((${(j.|.)pipestatus})) # Nonzero iff any of commands in pipeline returned nonzero.
if (($ret)); then
echo >&2 "Error: command failed ($ret): confz site_containers"
return $ret