aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/release
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2016-06-21 14:58:09 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-06-21 15:04:52 +0000
commita5afe95e471827ab636a249fb0fd4a11076548e9 (patch)
tree2dc8f85279ee37e15131d5b5d382d1c3ebfe4b70 /scripts/release
parentb5a06f3362b430d0f51d1f4da646f2de901e5707 (diff)
Replace #!/bin/bash -eu with #!/bin/bash and "set -eu". Otherwise, the "-eu" is not picked up when you run the scripts manually using "bash script.sh".
This is also in our shell style guide: "Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash <script_name> does not break its functionality." -- MOS_MIGRATED_REVID=125450962
Diffstat (limited to 'scripts/release')
-rwxr-xr-xscripts/release/common.sh4
-rwxr-xr-xscripts/release/release.sh6
-rwxr-xr-xscripts/release/relnotes.sh4
3 files changed, 9 insertions, 5 deletions
diff --git a/scripts/release/common.sh b/scripts/release/common.sh
index 98dfee1728..20925febe3 100755
--- a/scripts/release/common.sh
+++ b/scripts/release/common.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -eu
+#!/bin/bash
# Copyright 2015 The Bazel Authors. All rights reserved.
#
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+set -eu
+
# Some common method for release scripts
# A release candidate is created from a branch named "release-%name%"
diff --git a/scripts/release/release.sh b/scripts/release/release.sh
index c0c5f7c8a5..e72d56351f 100755
--- a/scripts/release/release.sh
+++ b/scripts/release/release.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -eu
+#!/bin/bash
# Copyright 2015 The Bazel Authors. All rights reserved.
#
@@ -14,10 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Generate the release branches and handle the release tags.
-
set -eu
+# Generate the release branches and handle the release tags.
+
# Repositories to push the release branch and the release tag.
: ${RELEASE_REPOSITORIES:="git@github.com:bazelbuild/bazel"}
diff --git a/scripts/release/relnotes.sh b/scripts/release/relnotes.sh
index 711e697a02..221c9de4d2 100755
--- a/scripts/release/relnotes.sh
+++ b/scripts/release/relnotes.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -eu
+#!/bin/bash
# Copyright 2015 The Bazel Authors. All rights reserved.
#
@@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+set -eu
+
# Generate the release notes from the git history.
# It uses the RELNOTES tag in the history to knows the important changes to