From d6de6e3bc5bc4d5f3c8799df33d876116bddef14 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 14 Apr 2021 16:37:15 -0500 Subject: Use AND lists and remove set -e --- chapter8/findutils.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'chapter8/findutils.sh') diff --git a/chapter8/findutils.sh b/chapter8/findutils.sh index 8f6f583..101f464 100644 --- a/chapter8/findutils.sh +++ b/chapter8/findutils.sh @@ -1,12 +1,13 @@ #!/bin/bash -set -e +# shellcheck disable=SC2016 -./configure --prefix=/usr --localstatedir=/var/lib/locate -make +./configure --prefix=/usr --localstatedir=/var/lib/locate && -make -j1 install +make && + +make -j1 install && + +mv -v /usr/bin/find /bin && -mv -v /usr/bin/find /bin -# shellcheck disable=SC2016 sed -i 's|find:=${BINDIR}|find:=/bin|' /usr/bin/updatedb -- cgit v1.2.3-54-g00ecf