Merge "bin: Enable 'set -e' and 'set -u' in bash scripts"

This commit is contained in:
jenkins-bot 2015-04-29 00:00:52 +00:00 committed by Gerrit Code Review
commit 368f7a29a8
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
#! /bin/bash
#!/bin/bash
# Requires VisualEditor.i18n.php to still contain all messages
# To reset it to that state, you can run:

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash -eu
# This script generates a structured git log of commits to the VisualEditor-MediaWiki repository,
# and walks the submodule updates to the lib/ve submodule and the OOjs and OOjs UI pull-through
@ -11,9 +11,9 @@
cd $(cd $(dirname $0)/..; pwd)
# Ensure input is correct
if [ "x$1" = "x" ]
if [ -z "${1:-}" ]
then
echo >&2 "Usage: listRecentCommits.sh startBranch"
echo >&2 "Usage: listRecentCommits.sh <startBranch>"
exit 1
fi
STARTHASH=`git rev-parse $1`

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash -eu
# This script generates a commit that updates the lib/ve submodule
# ./bin/updateSubmodule.sh updates to master