Added set -o pipefail
This commit is contained in:
parent
77399deaf3
commit
aaccc14e76
2 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -59,6 +59,7 @@ cat << "EOF" > /usr/local/sbin/spoof.sh
|
|||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
export LC_CTYPE=C
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue