From 1929cb04272e0f271b42ca9cc58ce08507aa6c5b Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 6 Feb 2022 17:50:08 +0000 Subject: [PATCH] [Scripts > Strip] Add removal of blank lines, add comments --- scripts/strip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/strip.sh b/scripts/strip.sh index ef17be6..bd49dfe 100644 --- a/scripts/strip.sh +++ b/scripts/strip.sh @@ -1,3 +1,4 @@ #!/bin/sh -find src -type f -name "*.js" -exec sed -i -E 's@[[:blank:]]*([^:]//).*@@;T;/./!d' {} + \ No newline at end of file +find src -type f -name "*.js" -exec sed -i -E 's@[[:blank:]]*([^:]//).*@@;T;/./!d' {} + # Remove // comments (ignore URLs) +find src -type f -name "*.js" -exec sed -i '/^[[:space:]]*$/d' {} + # Remove whitespace \ No newline at end of file