diff --git a/chap5-6.sh b/chap5-6.sh index 30d9482..1a49186 100644 --- a/chap5-6.sh +++ b/chap5-6.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + source ~/.bashrc source vars.sh diff --git a/chap7p1.sh b/chap7p1.sh index 783b5d6..20cc5d5 100644 --- a/chap7p1.sh +++ b/chap7p1.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + source vars.sh mkdir -pv /{boot,home,mnt,opt,srv} diff --git a/chap7p2.sh b/chap7p2.sh index 266e220..6f365ea 100644 --- a/chap7p2.sh +++ b/chap7p2.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + source vars.sh touch /var/log/{btmp,lastlog,faillog,wtmp} diff --git a/chap8p1.sh b/chap8p1.sh index 0412775..e0fc6ad 100644 --- a/chap8p1.sh +++ b/chap8p1.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + source vars.sh CURRENT_DATE_TIME=$(date +"%Y-%m-%d %T") diff --git a/chap8p2.sh b/chap8p2.sh index e756bcf..a274d44 100644 --- a/chap8p2.sh +++ b/chap8p2.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + source vars.sh CURRENT_DATE_TIME=$(date +"%Y-%m-%d %T")