Changeset - 0f3fabdff546
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2018-11-29 20:27:40
branko@majic.rs
Noticket: Fix the release script confirmation verification:

- Conditional for verifying user's request to publish the release was
missing.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
release.sh
Show inline comments
 
@@ -470,12 +470,18 @@ elif [[ $operation == "publish" ]]; then
 
    warning "Publishing version $version. Relevant local branches and tag will be pushed to the origin, and package will be uploaded to PyPI. Prompts will be provided along the way to provide the necessary credentials."
 
    echo
 

	
 
    read -p "Do you want to continue? (y/N) " confirm_release
 
    echo
 

	
 
    # Abort on user's request.
 
    if ! [[ $confirm_release == "y" || $confirm_release == "Y" ]]; then
 
        error "Aborting the preparation process as requested by user."
 
        exit "$ERROR_USER_ABORTED"
 
    fi
 

	
 
    # Clean-up the local build directories.
 
    rm -rf dist/
 
    rm -rf build/
 

	
 
    # Checkout the release version.
 
    if ! git checkout --quiet "$version"; then
0 comments (0 inline, 0 general)