Skip to content

Commit

Permalink
add pipefails
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Apr 27, 2017
1 parent 0a1485f commit 329b27e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions gitserver/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh
set -e
set -o pipefail

[ "$DEBUG" == 'true' ] && set -x

Expand Down
1 change: 1 addition & 0 deletions kernel-builder/install_kernel
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail

GRSEC_VERSION=3.1-4.4.5-201603142220

Expand Down
1 change: 1 addition & 0 deletions kvm/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail

# add the correct user perms
gpasswd -a root libvirt
Expand Down
1 change: 1 addition & 0 deletions latest-versions.sh
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
3 changes: 2 additions & 1 deletion mpd/mpd.sh
Original file line number Diff line number Diff line change
@@ -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} \
Expand Down
1 change: 1 addition & 0 deletions slapd/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
set -o pipefail

: LDAP_ROOTPASS=${LDAP_ROOTPASS}
: LDAP_DOMAIN=${LDAP_DOMAIN}
Expand Down
2 changes: 2 additions & 0 deletions sublime-text-3/run.sh
Original file line number Diff line number Diff line change
@@ -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.'
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 8 additions & 1 deletion vscode/start.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions ykpersonalize/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -o pipefail

init(){
local pcscd_running=$(ps -aux | grep [p]cscd)
Expand Down
2 changes: 2 additions & 0 deletions yubico-piv-tool/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
set -e
set -o pipefail

init(){
local pcscd_running=$(ps -aux | grep [p]cscd)
Expand Down

0 comments on commit 329b27e

Please sign in to comment.