mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-23 17:43:56 +00:00
Added set -o pipefail
This commit is contained in:
parent
77399deaf3
commit
aaccc14e76
@ -265,6 +265,7 @@ cat << EOF > /usr/local/bin/backup.sh
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
function dismount()
|
function dismount()
|
||||||
{
|
{
|
||||||
@ -343,6 +344,7 @@ cat << EOF > /usr/local/bin/check.sh
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
red=\$(tput setaf 1)
|
red=\$(tput setaf 1)
|
||||||
normal=\$(tput sgr0)
|
normal=\$(tput sgr0)
|
||||||
|
@ -59,6 +59,7 @@ cat << "EOF" > /usr/local/sbin/spoof.sh
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
export LC_CTYPE=C
|
export LC_CTYPE=C
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user