Skip to content

Commit

Permalink
fix shellcheck ..
Browse files Browse the repository at this point in the history
  • Loading branch information
ImreSamu committed Oct 7, 2023
1 parent 47c76c7 commit afe4fb8
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ get_latest_version_and_hash() {
local repo_url=$1
# Argument 2: Repository identifier
local repo_id=$2
echo "[+] Checking lastversion : $repo_id - $repo_url"
echo "[+] Checking lastversion : $repo_id - $repo_url"
# Fetch the latest version tag using the lastversion command
eval "lastversion_${repo_id}=$(lastversion --format tag --pre "${repo_url}")"

# Intermediary step to resolve the variable name
local var_name="lastversion_${repo_id}"
local last_version=${!var_name}

# Fetch the SHA1 hash of the tag using the get_tag_hash function
eval "lastversion_${repo_id}_sha1=$(get_tag_hash "${repo_url}" "${last_version}")"

Expand All @@ -176,16 +176,16 @@ get_latest_version_and_hash() {
}

get_latest_version_and_hash "https://github.com/MobilityDB/MobilityDB" "mobilitydb"
get_latest_version_and_hash "https://github.com/pramsey/pgsql-http" "pgsql_http"
get_latest_version_and_hash "https://github.com/pramsey/pgsql-gzip" "pgsql_gzip"
get_latest_version_and_hash "https://github.com/pramsey/pgsql-http" "pgsql_http"
get_latest_version_and_hash "https://github.com/pramsey/pgsql-gzip" "pgsql_gzip"
get_latest_version_and_hash "https://github.com/timescale/timescaledb" "timescaledb"

get_latest_version_and_hash "https://github.com/postgis/postgis" "postgis"
get_latest_version_and_hash "https://github.com/CGAL/cgal" "cgal"
get_latest_version_and_hash "https://github.com/libgeos/geos" "geos"
get_latest_version_and_hash "https://github.com/OSGeo/gdal" "gdal"
get_latest_version_and_hash "https://github.com/OSGeo/PROJ" "proj"
get_latest_version_and_hash "https://gitlab.com/Oslandia/SFCGAL" "sfcgal"
get_latest_version_and_hash "https://github.com/postgis/postgis" "postgis"
get_latest_version_and_hash "https://github.com/CGAL/cgal" "cgal"
get_latest_version_and_hash "https://github.com/libgeos/geos" "geos"
get_latest_version_and_hash "https://github.com/OSGeo/gdal" "gdal"
get_latest_version_and_hash "https://github.com/OSGeo/PROJ" "proj"
get_latest_version_and_hash "https://gitlab.com/Oslandia/SFCGAL" "sfcgal"

#-------------------------------------------

Expand Down

0 comments on commit afe4fb8

Please sign in to comment.