Skip to content

Commit 1a5be7b

Browse files
author
Nicolai Parlog
committed
Mark scripts as bash scripts and fail on error
1 parent 7992c3e commit 1a5be7b

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

git-commit-push.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/bin/bash
2+
3+
# exit with nonzero exit code if anything fails
4+
set -e
5+
16
cd $1
27
git add --all
38
git commit -m "Update site"

git-repo-setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/bin/bash
2+
3+
# exit with nonzero exit code if anything fails
4+
set -e
5+
16
# cloning `junit-pioneer`
27
git clone https://github.com/junit-pioneer/junit-pioneer.git junit-pioneer --depth=10
38
# adding worktrees `site` and `site-source`

git-repo-travis-setup.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
# Source: https://stackoverflow.com/a/44036486/2525313
1+
#!/bin/bash
2+
3+
# exit with nonzero exit code if anything fails
4+
set -e
25

6+
# Source: https://stackoverflow.com/a/44036486/2525313
37
# fetch all the remote branches; travis clones with `--depth`, which implies
48
# `--single-branch`, so we need to overwrite remote.origin.fetch to do that
59
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*

0 commit comments

Comments
 (0)