Skip to content

Commit

Permalink
add "set -o pipefail".
Browse files Browse the repository at this point in the history
  • Loading branch information
hansode committed Dec 18, 2014
1 parent bceb700 commit afd1250
Show file tree
Hide file tree
Showing 71 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ untitled/xexecscript.d/untitled.sh is a sample execscript.
# bash
#
set -e
set -o pipefail
declare chroot_dir=$1
Expand Down
2 changes: 2 additions & 0 deletions add-book.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare abs_dirname=${BASH_SOURCE[0]%/*}/
declare name=$1
Expand Down Expand Up @@ -34,6 +35,7 @@ cat <<'TEMPLATE' > xexecscript.d/${name}.sh
# bash
#
set -e
set -o pipefail
declare chroot_dir=$1
Expand Down
1 change: 1 addition & 0 deletions anti-shellshock/xexecscript.d/anti-shellshock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions apache-tools/xexecscript.d/apache-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions apache/xexecscript.d/apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions cassandra.dsc11/xexecscript.d/cassandra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions cassandra.dsc12/xexecscript.d/cassandra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions chef/xexecscript.d/chef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# http://www.opscode.com/chef/install/
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions docker-io/xexecscript.d/docker-io.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions drbd84/xexecscript.d/drbd84.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions elrepo-release/xexecscript.d/elrepo-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions enable-keepcache/xexecscript.d/enable-keepcache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

chroot $1 $SHELL -ex <<'EOS'
sed -i 's,^keepcache=.*,keepcache=1,' /etc/yum.conf
Expand Down
1 change: 1 addition & 0 deletions epel-release/xexecscript.d/epel-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions haproxy/xexecscript.d/haproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions hold-releasever.hold-baseurl/xexecscript.d/hold-baseurl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions hold-releasever/xexecscript.d/hold-releasever.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions hop5-repo/xexecscript.d/hop5-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions hping/xexecscript.d/hping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions iproute2.netns/xexecscript.d/iproute2.netns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions java-1.6.0-openjdk/xexecscript.d/java-1.6.0-openjdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions jenkins.core/xexecscript.d/build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions jenkins.master/xexecscript.d/jenkins-master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions jenkins.master/xexecscript.d/jenkins-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions jenkins.slave/xexecscript.d/setup_jenkins-slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

# jenkins:x:498:497:Jenkins Continuous Build server:/var/lib/jenkins:/bin/bash
# jenkins:x:497
Expand Down
1 change: 1 addition & 0 deletions jre6/xexecscript.d/jre6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions kernel-ml-aufs/xexecscript.d/kernel-ml-aufs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions kernel-ml/xexecscript.d/kernel-ml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions libcgroup/xexecscript.d/libcgroup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions libyaml/xexecscript.d/libyaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions lxc/xexecscript.d/lxc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions nginx/xexecscript.d/nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions ngrep/xexecscript.d/ngrep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions ntp.enable/xexecscript.d/enable-ntp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions ntp/xexecscript.d/ntp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions openvnet.common/xexecscript.d/openvnet.common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions openvnet.repo/xexecscript.d/openvnet.repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions openvswitch/xexecscript.d/openvswitch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions openvz.vzkernel/xexecscript.d/vzkernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions packer/xexecscript.d/packer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions pipework/xexecscript.d/pipework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions postfix.disable/xexecscript.d/postfix.disable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions qemu-guest-agent/xexecscript.d/qemu-guest-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions rabbitmq-server/xexecscript.d/rabbitmq-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# http://www.rabbitmq.com/releases/rabbitmq-server/current/
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions rdo-release/xexecscript.d/rdo-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions redis/xexecscript.d/redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions rpmbuild/xexecscript.d/rpmbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
1 change: 1 addition & 0 deletions s3tools-latest/xexecscript.d/s3tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

chroot $1 $SHELL -ex <<'EOS'
# WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
Expand Down
1 change: 1 addition & 0 deletions s3tools/xexecscript.d/s3tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

chroot $1 $SHELL -ex <<'EOS'
curl -fsSkL http://s3tools.org/repo/RHEL_6/s3tools.repo -o /etc/yum.repos.d/s3tools.repo
Expand Down
1 change: 1 addition & 0 deletions sensu.common/xexecscript.d/sensu.common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# bash
#
set -e
set -o pipefail

declare chroot_dir=$1

Expand Down
Loading

0 comments on commit afd1250

Please sign in to comment.