diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-04-19 20:32:30 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-04-19 20:35:20 -0400 |
| commit | 7547a689d4482d4162281ed3366b45ef10355339 (patch) | |
| tree | c058012c96de82ef5f1e47a75ac1aa2eeb730c64 | |
| parent | fad2dcd4173808c1f5ca144556179ef2e40a3d80 (diff) | |
use full path for cache busting renaming
| -rwxr-xr-x | process_static | 2 |
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 |
