File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 13
13
# Echo all of our steps if DEBUG_STEPS is set
14
14
test -n " $DEBUG_STEPS " && set -x
15
15
16
+ set -e # early exit if any step fails
17
+
16
18
# VERSION=0.28.3.gfm.20 ### not yet
17
19
VERSION=0.28.3.gfm.12
18
20
if [ " $1 " != " " ]; then VERSION=" $1 " ; fi
@@ -29,10 +31,10 @@ EXTRACTED_AS="cmark-gfm-$VERSION"
29
31
30
32
# Follow redirects, and place the result into known name $LOCAL
31
33
if [ -f " $LOCAL " ]; then
32
- echo " Using cached tarball: ${LOCAL} "
34
+ echo " Using cached tarball: ${LOCAL} " >&2
33
35
else
34
- echo " Fetching from cmark archives"
35
- curl -sSL -o " $LOCAL " " $ARCHIVES /$VERSION .tar.gz" || exit 1
36
+ echo " Fetching $VERSION from cmark archives" >&2
37
+ curl -sSL --fail - o " $LOCAL " " $ARCHIVES /$VERSION .tar.gz"
36
38
fi
37
39
38
40
# Clean anything old, then extract and build.
You can’t perform that action at this time.
0 commit comments