File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd)
66
77TARGET_DIR=" $BASE_DIR /test/fixtures/test426"
88README=" $BASE_DIR /test/test426/README.md"
9- TARBALL_URL=$( curl -fsIo /dev/null -w ' %header{Location}' https://github.com/tc39/source-map-tests/archive/HEAD.tar.gz)
10- SHA=$( basename " $TARBALL_URL " )
119
1210CURRENT_SHA=$( sed -n ' s#^.*https://github.com/tc39/source-map-tests/commit/\([0-9a-f]*\).*$#\1#p' " $README " )
1311
12+ if [ -z " $CURRENT_SHA " ]; then
13+ echo " Could not find source-map-tests commit marker in $README " >&2
14+ exit 1
15+ fi
16+
17+ TARBALL_URL=$( curl -fsIo /dev/null -w ' %header{Location}' https://github.com/tc39/source-map-tests/archive/HEAD.tar.gz)
18+ SHA=$( basename " $TARBALL_URL " )
19+
1420if [ " $CURRENT_SHA " = " $SHA " ]; then
1521 echo " Already up-to-date"
1622 exit 0
You can’t perform that action at this time.
0 commit comments