This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

needupdate

    Check if a semver version A > semver version B. Exits with 0 if greater, 1 otherwise.

    Usage:
        ops -needupdate <versionA> <versionB>
    

    Options

    -h, --help		 print this help info
    

    Examples

    Update is needed

    ops -needupdate 1.0.1 1.0.0; echo $?
    

    This will output:

    0
    

    Update is not needed

    ops -needupdate 1.0.0 1.0.1; echo $?
    

    This will output:

    1