Skip to content

Commit 83333ac

Browse files
committed
checkout-latest-tag: Exit with error in the case of any failures
1 parent 5fd8630 commit 83333ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/git-checkout-latest-tag.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22

3+
set -eo pipefail
4+
35
# SPDX-FileCopyrightText: 2014 MicroPython & CircuitPython contributors (https://github.com/adafruit/circuitpython/graphs/contributors)
46
#
57
# SPDX-License-Identifier: MIT
68

79
git fetch --tags
8-
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
10+
latest_tag="$(git describe --tags `git rev-list --tags --max-count=1`)"
11+
git checkout $latest_tag

0 commit comments

Comments
 (0)