executors: use set -e consistently

This commit is contained in:
Ariadne Conill 2020-08-26 03:35:18 -06:00
parent e7ef2d1e83
commit 14914f1251
8 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
# Copyright (C) 2012, 2020 Natanael Copa <ncopa@alpinelinux.org> # Copyright (C) 2012, 2020 Natanael Copa <ncopa@alpinelinux.org>
# Copyright (C) 2020 Ariadne Conill <ariadne@dereferenced.org> # Copyright (C) 2020 Ariadne Conill <ariadne@dereferenced.org>
# #

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
# Executor for advanced GRE tunnel management. # Executor for advanced GRE tunnel management.
[ -z "$IF_GRE_LOCAL" ] && exit 1 [ -z "$IF_GRE_LOCAL" ] && exit 1

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
start() { start() {
${MOCK} /bin/sh -c "echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra" ${MOCK} /bin/sh -c "echo 1 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra"
} }

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
[ -n "$VERBOSE" ] && set -x [ -n "$VERBOSE" ] && set -x
IF_LINK_OPTIONS="$IF_LINK_OPTIONS" IF_LINK_OPTIONS="$IF_LINK_OPTIONS"

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
[ -z "$IF_METRIC" ] && IF_METRIC="1" [ -z "$IF_METRIC" ] && IF_METRIC="1"
[ -n "$IF_VRF_TABLE" ] && VRF_TABLE="table $IF_VRF_TABLE" [ -n "$IF_VRF_TABLE" ] && VRF_TABLE="table $IF_VRF_TABLE"
[ -n "$IF_METRIC" ] && METRIC="metric $IF_METRIC" [ -n "$IF_METRIC" ] && METRIC="metric $IF_METRIC"

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
set -e
# Based on alpine's tunnel configuration script. # Based on alpine's tunnel configuration script.
# Copyright (c) 2017 Kaarle Ritvanen # Copyright (c) 2017 Kaarle Ritvanen
# Copyright (c) 2020 Ariadne Conill (extended for ifupdown-ng) # Copyright (c) 2020 Ariadne Conill (extended for ifupdown-ng)

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
[ -z "$IF_BOND_MEMBERS" ] && IF_BOND_MEMBERS="$IF_BOND_SLAVES" [ -z "$IF_BOND_MEMBERS" ] && IF_BOND_MEMBERS="$IF_BOND_SLAVES"
case "$PHASE" in case "$PHASE" in
depend) echo "$IF_BOND_MEMBERS" ;; depend) echo "$IF_BOND_MEMBERS" ;;

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -e
case "$PHASE" in case "$PHASE" in
depend) depend)
if [ "$IF_BRIDGE_PORTS" != "none" ]; then if [ "$IF_BRIDGE_PORTS" != "none" ]; then