From 8b5530be21a8e28e3e2c1b9917ca3645fbd13398 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 15 Apr 2021 08:32:23 -0500 Subject: Create fail and success functions and remove trailing white spaces at ends of lines. --- chapter9/bashprofile.sh | 3 +-- chapter9/bootscriptconf.sh | 3 +-- chapter9/inputrc.sh | 3 +-- chapter9/network.sh | 3 +-- chapter9/shells.sh | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) (limited to 'chapter9') diff --git a/chapter9/bashprofile.sh b/chapter9/bashprofile.sh index 77bc1bb..7ae73c2 100644 --- a/chapter9/bashprofile.sh +++ b/chapter9/bashprofile.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/profile << "EOF" # Begin /etc/profile diff --git a/chapter9/bootscriptconf.sh b/chapter9/bootscriptconf.sh index 2640502..ae9633c 100644 --- a/chapter9/bootscriptconf.sh +++ b/chapter9/bootscriptconf.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/inittab << "EOF" # Begin /etc/inittab diff --git a/chapter9/inputrc.sh b/chapter9/inputrc.sh index 05c7dde..5da8f3b 100644 --- a/chapter9/inputrc.sh +++ b/chapter9/inputrc.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/inputrc << "EOF" # Begin /etc/inputrc diff --git a/chapter9/network.sh b/chapter9/network.sh index 1cd1739..05ab2fd 100644 --- a/chapter9/network.sh +++ b/chapter9/network.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash pushd /etc/sysconfig/ >/dev/null || exit 1 cat > ifconfig.eth0 << "EOF" diff --git a/chapter9/shells.sh b/chapter9/shells.sh index ac66dd6..dbeced4 100644 --- a/chapter9/shells.sh +++ b/chapter9/shells.sh @@ -1,5 +1,4 @@ -#!/bin/bash -set -e +#!/bin/bash cat > /etc/shells << "EOF" # Begin /etc/shells -- cgit v1.2.3-54-g00ecf