Skip to content

Commit f93a2d7

Browse files
committed
Fail ci-retrofit if it's not yet configured
1 parent f882808 commit f93a2d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.ci/retrofit-worktree.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ fi
77
WORKTREE_NAME="$1"
88
WORKTREE_DIRECTORY="$2"
99

10+
if [ ! -f $WORKTREE_DIRECTORY/build/make/Makefile ]; then
11+
echo >&2 "Error: This script must be run in a Sage directory that is configured."
12+
exit 1
13+
fi
14+
1015
export GIT_AUTHOR_NAME="ci-sage workflow"
1116
export GIT_AUTHOR_EMAIL="ci-sage@example.com"
1217
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"

0 commit comments

Comments
 (0)