Skip to content

Commit df6acc6

Browse files
committed
bump version
1 parent 4ba7b7d commit df6acc6

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

release.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
usage(){
44
echo "Usage: $0 -v <desired version> -g <gpg password>"
5+
echo "Or if you want to be asked fro GPG password without printing to console: $0 -v <desired version>"
56
exit 1
67
}
78

@@ -49,9 +50,14 @@ fi
4950

5051
if [ -z "${gpg_pass}" ]
5152
then
52-
echo "No gpg password given!"
53-
usage
54-
exit 1
53+
echo "Enter gpg password: "
54+
read -s gpg_pass
55+
if [ -z "${gpg_pass}" ]
56+
then
57+
echo "No gpg password given!"
58+
usage
59+
exit 1
60+
fi
5561
fi
5662

5763
mvn --batch-mode release:prepare release:perform -DreleaseVersion=${version} -Darguments="-Dgpg.passphrase=${gpg_pass}"

0 commit comments

Comments
 (0)