diff options
Diffstat (limited to 'Tools/scripts/git-get-latest-remote-version.sh')
-rwxr-xr-x | Tools/scripts/git-get-latest-remote-version.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Tools/scripts/git-get-latest-remote-version.sh b/Tools/scripts/git-get-latest-remote-version.sh index 452874881b7d..692a4fb1c8ef 100755 --- a/Tools/scripts/git-get-latest-remote-version.sh +++ b/Tools/scripts/git-get-latest-remote-version.sh @@ -8,13 +8,13 @@ set -o pipefail export LC_ALL=C ## -## git-get-latest-remote-version.sh: retrieves the latest version of a given Git project on github.com +## git-get-latest-remote-version.sh: retrieves the latest version of a remote project at the given Git URL ## # args -REPOSITORY_URL="$1" -TAG_PREFIX="$2" +REPOSITORY_URL="$1" # mandatory +TAG_PREFIX="$2" # optional if [ -z "$REPOSITORY_URL" ]; then echo "Usage: $0 <repository-url> <tag-prefix>" @@ -26,9 +26,9 @@ fi for dep in git version_sort; do if ! which -s $dep; then echo "error: the '$dep' dependency is missing" - if [ $dep == "git" ]; then + if [ $dep = "git" ]; then echo "... please install the 'git' package" - elif [ $dep == "version_sort" ]; then + elif [ $dep = "version_sort" ]; then echo "... please install the 'libversion' package" fi exit 1 @@ -43,4 +43,4 @@ git ls-remote --refs --tags $REPOSITORY_URL 2>/dev/null | sed -e "s|.*refs/tags/$TAG_PREFIX||" | version_sort | tail -1 || - ! echo "failed to find the git project or tags in it" + ! echo "failed to find the git project '$REPOSITORY_URL' or tags in it" |