summaryrefslogtreecommitdiff
path: root/scripts/asset-release
diff options
context:
space:
mode:
authormarudor <marudor@marudor.de>2019-05-11 12:51:41 +0200
committermarudor <marudor@marudor.de>2019-05-11 12:51:41 +0200
commit94febe86cd81f2d40d4e5f93f7dfb9be82dbff15 (patch)
treedefde85fb415f7dab052b84075e0f3cb8e2b07f8 /scripts/asset-release
parentd2f01f963a1c18020969e5d8a4584e3e16c5641d (diff)
Release version 19, fix asset-release for macos
Diffstat (limited to 'scripts/asset-release')
-rwxr-xr-xscripts/asset-release8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/asset-release b/scripts/asset-release
index 5a65bca..20d08e7 100755
--- a/scripts/asset-release
+++ b/scripts/asset-release
@@ -2,16 +2,16 @@
set -ex
-current="$(ls -d public/static/v* | tail -n 1 | grep -o '..$')"
+current="$(find -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" \
+perl -pi -e "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
+perl -pi -e "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
+perl -pi -e "s!av = 'v${current}'!av = 'v${next}'!" templates/layouts/default.html.ep