Skip to content

Commit d9601e6

Browse files
Trottaduh95
andauthored
Update tools/dep_updaters/update-test426-fixtures.sh
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent f248631 commit d9601e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/dep_updaters/update-test426-fixtures.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ README="$BASE_DIR/test/test426/README.md"
99
TARBALL_URL=$(curl -fsIo /dev/null -w '%header{Location}' https://github.com/tc39/source-map-tests/archive/HEAD.tar.gz)
1010
SHA=$(basename "$TARBALL_URL")
1111

12-
TMP_DIR="$(mktemp -d)"
12+
CURRENT_SHA=$(sed -n 's#^.*https://github.com/tc39/source-map-tests/commit/\([0-9a-f]*\).*$#\1#p' "$README")
13+
14+
if [ "$CURRENT_SHA" = "$SHA" ]; then
15+
echo "Already up-to-date"
16+
exit 0
17+
fi
1318

1419
rm -rf "$TARGET_DIR"
1520
mkdir "$TARGET_DIR"

0 commit comments

Comments
 (0)