From 6a10fc44c374d3e6fab6ee4dc01299321f8b2444 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 13 Apr 2021 14:09:09 -0500 Subject: Add set -e to scripts. --- chapter9/bashprofile.sh | 1 + chapter9/bootscriptconf.sh | 1 + chapter9/inputrc.sh | 1 + chapter9/lfs-bootscripts.sh | 1 + chapter9/network.sh | 1 + chapter9/shells.sh | 1 + 6 files changed, 6 insertions(+) (limited to 'chapter9') diff --git a/chapter9/bashprofile.sh b/chapter9/bashprofile.sh index 9636b3a..e52d25b 100644 --- a/chapter9/bashprofile.sh +++ b/chapter9/bashprofile.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cat > /etc/profile << "EOF" # Begin /etc/profile diff --git a/chapter9/bootscriptconf.sh b/chapter9/bootscriptconf.sh index 3c00024..2640502 100644 --- a/chapter9/bootscriptconf.sh +++ b/chapter9/bootscriptconf.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cat > /etc/inittab << "EOF" # Begin /etc/inittab diff --git a/chapter9/inputrc.sh b/chapter9/inputrc.sh index bab2a35..05c7dde 100644 --- a/chapter9/inputrc.sh +++ b/chapter9/inputrc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cat > /etc/inputrc << "EOF" # Begin /etc/inputrc diff --git a/chapter9/lfs-bootscripts.sh b/chapter9/lfs-bootscripts.sh index db9dad4..c019094 100644 --- a/chapter9/lfs-bootscripts.sh +++ b/chapter9/lfs-bootscripts.sh @@ -1,3 +1,4 @@ #!/bin/bash +set -e make -j1 install diff --git a/chapter9/network.sh b/chapter9/network.sh index e1386a4..1cd1739 100644 --- a/chapter9/network.sh +++ b/chapter9/network.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e pushd /etc/sysconfig/ >/dev/null || exit 1 cat > ifconfig.eth0 << "EOF" diff --git a/chapter9/shells.sh b/chapter9/shells.sh index d94254c..ac66dd6 100644 --- a/chapter9/shells.sh +++ b/chapter9/shells.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cat > /etc/shells << "EOF" # Begin /etc/shells -- cgit v1.2.3-54-g00ecf