fix: parse version listing properly
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f1c1f25741
commit
32b11c9bee
@ -9,7 +9,11 @@
|
|||||||
|
|
||||||
# abra x.x.x (UNRELEASED)
|
# abra x.x.x (UNRELEASED)
|
||||||
|
|
||||||
# abra 10.0.4 (????-??-??)
|
# abra 10.0.5 (2021-09-06)
|
||||||
|
|
||||||
|
- Fix catalogue version listing parsing.
|
||||||
|
|
||||||
|
# abra 10.0.4 (2021-09-06)
|
||||||
|
|
||||||
- Understand how to parse the new catalogue versions listing.
|
- Understand how to parse the new catalogue versions listing.
|
||||||
|
|
||||||
|
4
abra
4
abra
@ -5,7 +5,7 @@
|
|||||||
GIT_URL="https://git.coopcloud.tech/coop-cloud/"
|
GIT_URL="https://git.coopcloud.tech/coop-cloud/"
|
||||||
ABRA_APPS_URL="https://apps.coopcloud.tech"
|
ABRA_APPS_URL="https://apps.coopcloud.tech"
|
||||||
ABRA_DIR="${ABRA_DIR:-$HOME/.abra}"
|
ABRA_DIR="${ABRA_DIR:-$HOME/.abra}"
|
||||||
ABRA_VERSION="10.0.4"
|
ABRA_VERSION="10.0.5"
|
||||||
ABRA_BACKUP_DIR="${ABRA_BACKUP_DIR:-$ABRA_DIR/backups}"
|
ABRA_BACKUP_DIR="${ABRA_BACKUP_DIR:-$ABRA_DIR/backups}"
|
||||||
ABRA_VENDOR_DIR="$ABRA_DIR/vendor"
|
ABRA_VENDOR_DIR="$ABRA_DIR/vendor"
|
||||||
ABRA_APPS_JSON="${ABRA_DIR}/apps.json"
|
ABRA_APPS_JSON="${ABRA_DIR}/apps.json"
|
||||||
@ -697,7 +697,7 @@ get_recipe_versions() {
|
|||||||
if [ "$recipe_json" = "null" ]; then
|
if [ "$recipe_json" = "null" ]; then
|
||||||
declare -a RECIPE_VERSIONS
|
declare -a RECIPE_VERSIONS
|
||||||
else
|
else
|
||||||
mapfile -t RECIPE_VERSIONS < <(echo "$recipe_json" | $JQ -r ".versions | keys | .[]")
|
mapfile -t RECIPE_VERSIONS < <(echo "$recipe_json" | $JQ -r ".versions | .[] | keys | add")
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# shellcheck disable=SC2154,SC2034
|
# shellcheck disable=SC2154,SC2034
|
||||||
|
|
||||||
ABRA_VERSION="10.0.4"
|
ABRA_VERSION="10.0.5"
|
||||||
GIT_URL="https://git.coopcloud.tech/coop-cloud/abra"
|
GIT_URL="https://git.coopcloud.tech/coop-cloud/abra"
|
||||||
ABRA_SRC="$GIT_URL/raw/tag/$ABRA_VERSION/abra"
|
ABRA_SRC="$GIT_URL/raw/tag/$ABRA_VERSION/abra"
|
||||||
ABRA_DIR="${ABRA_DIR:-$HOME/.abra}"
|
ABRA_DIR="${ABRA_DIR:-$HOME/.abra}"
|
||||||
|
Reference in New Issue
Block a user