Files
monkeygg2.github.io/games/web-osu/bumpversion.sh
T
2023-08-25 13:31:04 +05:30

12 lines
188 B
Bash

#!/bin/bash
a=$(cat .version)
[ $# -eq 0 ] && echo "$a" && exit 0
b=$1
list=$(ls *.html)
for f in *.html
do
cat "$f" | sed "s/""$a""/""$b""/" > .tmp
mv .tmp "$f"
done
echo $b > .version