Added set -o pipefail

This commit is contained in:
Sun Knudsen 2021-04-17 16:33:15 -04:00
parent 77399deaf3
commit aaccc14e76
No known key found for this signature in database
GPG Key ID: 1FA767862BBD1305
2 changed files with 3 additions and 0 deletions

View File

@ -265,6 +265,7 @@ cat << EOF > /usr/local/bin/backup.sh
#! /bin/sh
set -e
set -o pipefail
function dismount()
{
@ -343,6 +344,7 @@ cat << EOF > /usr/local/bin/check.sh
#! /bin/sh
set -e
set -o pipefail
red=\$(tput setaf 1)
normal=\$(tput sgr0)

View File

@ -59,6 +59,7 @@ cat << "EOF" > /usr/local/sbin/spoof.sh
#! /bin/sh
set -e
set -o pipefail
export LC_CTYPE=C