Skip to content

Commit

Permalink
improve happynotes_release: show current version
Browse files Browse the repository at this point in the history
  • Loading branch information
shukebeta committed Jun 26, 2024
1 parent 35b19c7 commit 435aaa7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/release
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ if [ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then
exit 1
fi

script_dir="$(dirname "$(readlink -f "$0")")"
cd $script_dir/..

# Check if the correct number of arguments is provided
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <version> <release_note>"
echo "Current $(rg version: pubspec.yaml)"
echo "Example: $0 1.2.3 \"This is a release note\""
exit 1
fi
Expand All @@ -25,9 +29,6 @@ if ! [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
exit 1
fi

script_dir="$(dirname "$(readlink -f "$0")")"
cd $script_dir/..

mv .env .env.backup
cp .env.production .env

Expand Down

0 comments on commit 435aaa7

Please sign in to comment.