Skip to content

Check if the screen is running and cancel the update when not #4

@pascal-t

Description

@pascal-t

The script does currently not check whether the screen is running, resulting in a 'No screen session found.' error (multiple actually as the update goes on).
In that case of the error and if the screen was not specified the script continues running, which might be good, if you want to backup anyways just to be sure, but I'd prefer if the scripts exits. Maybe a flag for exiting on errors would be good.

You can test if the screen is running by checking the exit code of screen -S minecraft -Q select . &> /dev/null. I am currently checking this myself before I run the backup and will will maybe work on a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions