diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-13 14:09:09 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-13 14:09:09 -0500 |
commit | 6a10fc44c374d3e6fab6ee4dc01299321f8b2444 (patch) | |
tree | b720135a7fb4e135bc91d61772a9624fd2d3a370 | |
parent | ad684c53896fdff0ebb3dcd881c479b04da64b6b (diff) |
Add set -e to scripts.
-rw-r--r-- | chapter9/bashprofile.sh | 1 | ||||
-rw-r--r-- | chapter9/bootscriptconf.sh | 1 | ||||
-rw-r--r-- | chapter9/inputrc.sh | 1 | ||||
-rw-r--r-- | chapter9/lfs-bootscripts.sh | 1 | ||||
-rw-r--r-- | chapter9/network.sh | 1 | ||||
-rw-r--r-- | chapter9/shells.sh | 1 |
6 files changed, 6 insertions, 0 deletions
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 |