Skip to content

Guacamole upgrade script code optimization suggestion #267

@borross

Description

@borross

Hello! Thanks for great scripts!
I want to share two mini code optimizations:

  1. Check latest version from official site (for example with using curl)
GUACVERSION=$(curl --silent https://guacamole.apache.org/ | grep 'Latest release' | awk '{print $4}' | cut -d "/" -f 3)
  1. Current version and new version comparison after the SERVER (# Set SERVER to be the preferred download server from the Apache CDN) variable, :
if [ $OLDVERSION = $GUACVERSION ]; then exit 0; fi

What do you think? Offer at your discretion :)

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