use awk to bump CACHE_VERSION (drop sed usage)
This commit is contained in:
parent
e46b12d267
commit
5f36800100
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -97,8 +97,8 @@ bundle:
|
||||||
npm run vendor_bundle_js
|
npm run vendor_bundle_js
|
||||||
npm run vendor_minify_js
|
npm run vendor_minify_js
|
||||||
# increment serviceworker version
|
# increment serviceworker version
|
||||||
sed -i -e "s/CACHE_VERSION =.*/CACHE_VERSION = $$(awk '/CACHE_VERSION =/ { print 1+$$4 }' lnbits/static/js/service-worker.js)/" \
|
awk '/CACHE_VERSION =/ {sub(/[0-9]+$$/, $$NF+1)} 1' lnbits/static/js/service-worker.js > lnbits/static/js/service-worker.js.new
|
||||||
lnbits/static/js/service-worker.js
|
mv lnbits/static/js/service-worker.js.new lnbits/static/js/service-worker.js
|
||||||
|
|
||||||
checkbundle:
|
checkbundle:
|
||||||
cp lnbits/static/bundle.min.js lnbits/static/bundle.min.js.old
|
cp lnbits/static/bundle.min.js lnbits/static/bundle.min.js.old
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue