Skip to content

Commit 61bf9ac

Browse files
committed
ENH: feedstock script should fail on error
Update sed command to not raise inconsequential error code
1 parent 4097cee commit 61bf9ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/feedstock.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#
2626
# 2018 Chris Markiewicz
2727

28-
set -x
28+
set -ex
2929

3030
REPO=${1:-$CIRCLE_PROJECT_REPONAME}
3131
FEEDSTOCK=${2:-$REPO-feedstock}
@@ -77,7 +77,7 @@ fi
7777

7878
# Set version, hash, and reset build number
7979
# Use ~ for separator in URL, to avoid slash issues
80-
sed -i '' \
80+
sed -i \
8181
-e 's/^\({% set version = "\).*\(" %}\)$/'"\1$VERSION\2/" \
8282
-e 's/^\({% set sha256 = "\).*\(" %}\)$/'"\1$SHA256\2/" \
8383
-e 's~^\( *url:\) .*$~\1 '"$URL_FMT~" \

0 commit comments

Comments
 (0)