From d6de6e3bc5bc4d5f3c8799df33d876116bddef14 Mon Sep 17 00:00:00 2001
From: William Harrington <kb0iic@berzerkula.org>
Date: Wed, 14 Apr 2021 16:37:15 -0500
Subject: Use AND lists and remove set -e

---
 chapter8/zlib.sh | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

(limited to 'chapter8/zlib.sh')

diff --git a/chapter8/zlib.sh b/chapter8/zlib.sh
index d807c7e..4de64f9 100644
--- a/chapter8/zlib.sh
+++ b/chapter8/zlib.sh
@@ -1,10 +1,9 @@
 #!/bin/bash
-set -e
 
-./configure --prefix=/usr
-make
-make -j1 install
+./configure --prefix=/usr &&
+make &&
+make -j1 install &&
 
-mv -v /usr/lib/libz.so.* /lib
-ln -sfv ../../lib/"$(readlink /usr/lib/libz.so)" /usr/lib/libz.so
+mv -v /usr/lib/libz.so.* /lib &&
+ln -sfv ../../lib/"$(readlink /usr/lib/libz.so)" /usr/lib/libz.so &&
 rm -fv /usr/lib/libz.a
-- 
cgit v1.2.3-54-g00ecf