Fix for sed in increment_version.sh

This commit is contained in:
Garth Minette 2021-05-21 02:19:14 -07:00
parent 861e2b641f
commit 4c53de802d
2 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,8 @@ if [[ "$(cat "$VERFILE")" =~ BOSL_VERSION.*=.*\[([0-9]+),\ *([0-9]+),\ *([0-9]+
echo "Current Version: $major.$minor.$revision"
echo "New Version: $major.$minor.$new_revision"
sed -i 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$new_revision];/g" "$VERFILE"
sed -i.bak -e 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$new_revision];/g" "$VERFILE"
rm "$VERFILE".bak
else
echo "Could not extract version number from $VERFILE" >&2
exit 1

View file

@ -11,5 +11,6 @@ rm -rf .git
git init
git add .
git commit -m "Purged wiki history."
git config pull.rebase false
git remote add origin git@github.com:revarbat/BOSL2.wiki.git
git push -u --force origin master