release.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 2bc861a32b2474f692b68be666918ade897f69ed
Author: Stefan Negrea <snegrea(a)redhat.com>
Date: Tue Jun 25 13:06:19 2013 -0500
Update usage of bash boolean variables one more time in if statements. The test is now
explicit.
diff --git a/release.sh b/release.sh
index 1df6998..b37fe65 100755
--- a/release.sh
+++ b/release.sh
@@ -373,7 +373,7 @@ run_release_version_and_tag_process()
fi
echo "8) Tag the current source."
- if [ $OVERRIDE_TAG ];
+ if [ $OVERRIDE_TAG == true ];
then
git tag --force "$RELEASE_TAG"
[ "$?" -ne 0 ] && abort "Force tagging failed."
@@ -410,7 +410,7 @@ update_development_version()
{
print_function_information $FUNCNAME
- if [ $TERMINAL_BRANCH ];
+ if [ $TERMINAL_BRANCH == true ];
then
echo "Release branch $RELEASE_BRANCH is a terminal branch. Version on release
branch no updated for future development!";
return 0;
@@ -452,7 +452,7 @@ verify_tags()
EXISTING_REMOTE_TAG=`git ls-remote --tags origin "$RELEASE_TAG"`
if [ -n "$EXISTING_REMOTE_TAG" ];
then
- if [ $OVERRIDE_TAG ];
+ if [ $OVERRIDE_TAG == true ];
then
echo "A remote tag named $RELEASE_TAG already exists, but will be
overriden."
else
Show replies by date