diff --git a/deploy/jc-web-im-update.sh b/deploy/jc-web-im-update.sh index 776283c..67522a9 100755 --- a/deploy/jc-web-im-update.sh +++ b/deploy/jc-web-im-update.sh @@ -54,7 +54,7 @@ while IFS= read -r asset; do echo "Missing referenced asset: $asset" >&2 exit 1 } -done < <(sed -nE 's/.*(css\/[^" ]+|js\/[^" ]+).*/\1/p' "$DIST_DIR/index.html") +done < <(grep -oE '(css|js)/[^"'"'"' ]+' "$DIST_DIR/index.html" | sort -u) find "$DIST_DIR/api" -type f -name '*.php' -print0 | xargs -0 -r -n1 php -l >/dev/null