From b5ef28687a34eb57ccefef181cc1537162157567 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 30 Nov 2020 22:52:42 +0100 Subject: [PATCH] adsf concat --- concat-example.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concat-example.sh b/concat-example.sh index cc56c87..14875a0 100644 --- a/concat-example.sh +++ b/concat-example.sh @@ -9,7 +9,7 @@ function magic() { for file in $(grep -oP -e '"stylesheet" href="\K[^"]*' index.html); do sed -i -e "\\#$file#d" index.html - cat $file >> all.css + cat "$file" >> all.css done sed -i -e 's$.*CSS_ANCHOR.*$\0\n$' index.html magic all css @@ -19,7 +19,7 @@ for file in $(grep -oP -e 'script src="\K[^"]*' index.html); do sed -i -e "\\#$file#d" index.html cat "$file" >> all.js done -sed -i -e 's$.*JS_ANCHOR.*$\0\n$' index.html +sed -i -e 's$.*JS_ANCHOR.*$\0\n$' index.html magic all js