#!/usr/bin/env bash set -eo pipefail VAR="const currentVersion = '$RANDOM';" sed "1s/.*/$VAR/" sw.js > sw.js.new mv sw.js.new sw.js git add sw.js