Skip to content
Snippets Groups Projects
Commit 4cd88a8f authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add asset-release helper script

parent 8e412e19
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -ex
current="$(ls -d public/static/v* | tail -n 1 | grep -o '..$')"
prev=$((current - 1))
next=$((current + 1))
git mv public/static/v${prev} public/static/v${next}
sed -i "s!/v${current}/!/v${next}/!g" \
public/service-worker.js public/static/manifest.json \
public/static/css/material-icons.css
sed -i "s!static-cache-v${current}!static-cache-v${next}!" public/service-worker.js
sed -i "s!av = 'v${current}'!av = 'v${next}'!" templates/layouts/default.html.ep
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment