Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Use proper condition
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-aso authored Nov 15, 2017
1 parent 1cdb246 commit 03e8260
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ then
echo "Release branch wasn't provided and patch is not allowed on master"
exit 1
else
git checkout ${RELEASE_BRANCH} || { echo "Provided branch does not exits!" && exit 1 }
if ! git checkout ${RELEASE_BRANCH}
then
echo "Provided branch does not exits!"
exit 1
fi
fi
fi

Expand Down

0 comments on commit 03e8260

Please sign in to comment.