We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f248631 commit d9601e6Copy full SHA for d9601e6
tools/dep_updaters/update-test426-fixtures.sh
@@ -9,7 +9,12 @@ README="$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")
11
12
-TMP_DIR="$(mktemp -d)"
+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
18
19
rm -rf "$TARGET_DIR"
20
mkdir "$TARGET_DIR"
0 commit comments