From 4430036ea2b54e416b0375d25c322ba066d67084 Mon Sep 17 00:00:00 2001
From: smdyv <88971341+smdyv@users.noreply.github.com>
Date: Thu, 13 Jul 2023 16:51:50 +0200
Subject: Change string markings for replacements
---
process-static | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 'process-static')
diff --git a/process-static b/process-static
index 5e891dc8..c3176328 100755
--- a/process-static
+++ b/process-static
@@ -49,14 +49,14 @@ for file in static-tmp/**/*.css static-tmp/js/*.js static-tmp/**/!(bimi|favicon)
dest="$(dirname $file)/$hash.$(basename $file)"
if [[ $file == *.css ]]; then
- replace+=";s@{{css|/${file#*/}}}@@g"
+ replace+=";s@\[\[css|/${file#*/}\]\]@@g"
elif [[ $file == *.js ]]; then
- replace+=";s@{{js|/${file#*/}}}@@g"
+ replace+=";s@\[\[js|/${file#*/}\]\]@@g"
fi
mv "$file" "$dest"
- replace+=";s@{{integrity|/${file#*/}}}@${sri_hash}@g"
- replace+=";s@{{path|/${file#*/}}}@/${dest#*/}@g"
+ replace+=";s@\[\[integrity|/${file#*/}\]\]@${sri_hash}@g"
+ replace+=";s@\[\[path|/${file#*/}\]\]@/${dest#*/}@g"
done
sed -i "$replace" static-tmp/**/*.html nginx-tmp/nginx.conf nginx-tmp/snippets/preload.conf
@@ -67,7 +67,7 @@ for device in ${devices[@]}; do
for channel in ${channels[@]}; do
metadata=$(curl -s $RELEASES_BASE/$device-$channel)
build_number=$(echo -n $metadata | cut -d ' ' -f 1)
- replace+=";s@{{$device-$channel-BUILD_NUMBER}}@$build_number@g"
+ replace+=";s@\[\[$device-$channel-BUILD_NUMBER\]\]@$build_number@g"
done
done
sed -i "$replace" static-tmp/releases.html
--
cgit v1.3.1