From 21cbd70905ce9c434e45533951abbdc3f1c8c9b5 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 23 Jan 2021 03:56:00 -0500 Subject: [PATCH] copy data for validate_static --- validate_static | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/validate_static b/validate_static index 5980cd5e..8f34afe1 100755 --- a/validate_static +++ b/validate_static @@ -5,11 +5,14 @@ shopt -s dotglob extglob globstar export PATH="$PWD/node_modules/.bin:$PATH" -for file in static/**/*.@(json|webmanifest); do +rm -rf static_tmp +cp -a static static_tmp + +for file in static_tmp/**/*.@(json|webmanifest); do json_verify < "$file" >/dev/null done -xmllint --noout static/**/*.@(html|svg|xml) -eslint static/**/!(zip.min|z-worker).js -stylelint static/**/*.css -validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg) +xmllint --noout static_tmp/**/*.@(html|svg|xml) +eslint static_tmp/**/!(zip.min|z-worker).js +stylelint static_tmp/**/*.css +validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg)