Skip to content

Commit 1117be1

Browse files
committed
add update script
1 parent d49adb9 commit 1117be1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

update.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
VERSION=$(curl -s https://github.com/mintyphp/mintyphp/releases | grep -iA 10 'label-latest' | grep -o '"v[0-9]\+\.[0-9]\+\.[0-9]\+"')
3+
VERSION="${VERSION//\"}" # strip quote character
4+
VERSION="${VERSION//v}" # strip v character
5+
OLDVER=$(cat version.txt)
6+
echo $VERSION > version.txt
7+
sed -i "s/$OLDVER/$VERSION/g" 01-installation.md
8+
git commit -am "update latest" && git push

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.0.2

0 commit comments

Comments
 (0)