Skip to content

Commit

Permalink
roundtrip: Exit on command failure
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Nov 30, 2017
1 parent 2b51abe commit f7ade0c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions misc/roundtrip
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

set -e

# Avoid trouble with weird bytes on non-C locales
export LC_ALL=C

Expand Down Expand Up @@ -112,8 +114,10 @@ OLD_IFS="$IFS"
IFS='
'
set -x
for tags in $(find "$UNITS" -name expected.tags); do
for name in $(sed -e 's/^\([^ ]*\) .*/\1/' "$tags"); do
tagfiles="$(find "$UNITS" -name expected.tags)"
for tags in $tagfiles; do
tagnames="$(sed -e 's/^\([^ ]*\) .*/\1/' "$tags")"
for name in $tagnames; do
# Yes, there is a reason for this craziness. We need to properly
# handle embedded newlines (expanded from "\n"), including trailing
# ones the shell would strip automatically. To work around this, we
Expand Down

0 comments on commit f7ade0c

Please sign in to comment.