add pipefails

Signed-off-by: Jess Frazelle <acidburn@google.com>
This commit is contained in:
Jess Frazelle 2017-04-27 16:58:43 -04:00
parent 0a1485f754
commit 329b27eeeb
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
11 changed files with 22 additions and 2 deletions

View File

@ -1,5 +1,6 @@
#!/bin/sh
set -e
set -o pipefail
[ "$DEBUG" == 'true' ] && set -x

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
GRSEC_VERSION=3.1-4.4.5-201603142220

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
# add the correct user perms
gpasswd -a root libvirt

View File

@ -1,6 +1,7 @@
# This script gets the latest GitHub releases for the specified projects.
#!/bin/bash
set -e
set -o pipefail
if [[ -z "$GITHUB_TOKEN" ]]; then
echo "Set the GITHUB_TOKEN env variable."

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
mkdir -p /var/lib/mpd/{playlists,music} \
&& touch /var/lib/mpd/{state,tag_cache} \

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
: LDAP_ROOTPASS=${LDAP_ROOTPASS}
: LDAP_DOMAIN=${LDAP_DOMAIN}

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
set -o pipefail
if [ -z ${NEWUSER+x} ]; then
echo 'WARN: No user was defined, defaulting to root.'
echo 'WARN: Sublime will save files as root:root.'

View File

@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
# this is kind of an expensive check, so let's not do this twice if we
# are running more than one validate bundlescript

View File

@ -1,4 +1,11 @@
#!/bin/bash
set -e
set -o pipefail
su user -c /usr/bin/editor
VSCODE_COMMAND=/usr/bin/code
if [[ ! -f "${VSCODE_COMMAND}" ]]; then
>&2 echo "${VSCODE_COMMAND} does not exist"
exit 1
fi
su user -c "${VSCODE_COMMAND}"
sleep infinity

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
init(){
local pcscd_running=$(ps -aux | grep [p]cscd)

View File

@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -o pipefail
init(){
local pcscd_running=$(ps -aux | grep [p]cscd)