summaryrefslogtreecommitdiff
path: root/process_static
diff options
context:
space:
mode:
Diffstat (limited to 'process_static')
-rwxr-xr-xprocess_static2
1 files changed, 1 insertions, 1 deletions
diff --git a/process_static b/process_static
index ec4f7193..1bebae0f 100755
--- a/process_static
+++ b/process_static
@@ -22,7 +22,7 @@ for file in static_tmp/**/*.css static_tmp/js/*.js; do
hash=$(sha256sum "$file" | head -c 8)
dest="$(dirname $file)/$hash.$(basename $file)"
mv "$file" "$dest"
- replace+=";s/\\/$(basename $file)/\\/$(basename $dest)/g"
+ replace+=";s|/${file#*/}|/${dest#*/}|g"
done
cp nginx/nginx.conf nginx.conf.tmp