Skip to content

Commit

Permalink
verup confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
andgineer committed Aug 12, 2021
1 parent 8cce61e commit 2422994
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions verup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ NEW_VERSION=$(echo "$major.$minor.$build")
NEW_TAG=$(echo "v$NEW_VERSION")
echo -e "New version tag: \033[32m$NEW_TAG\033[39m"

read -r -p "Set the version? [y/N] " response
if ! [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then
echo "..aborting.."
exit
fi

for file in ${VERSION_FILES[*]}; do
echo -e "VERSION = '$NEW_VERSION'" >$file
git add $file
Expand Down

0 comments on commit 2422994

Please sign in to comment.