Skip to content
Snippets Groups Projects
Commit c75ac721 authored by François Grand's avatar François Grand
Browse files

fix(ci): release-version.sh failure on releases.json update

parent 3d0c4893
No related branches found
No related tags found
1 merge request!135Integrate last changes for release version into devel branch
Pipeline #139536 passed
......@@ -42,11 +42,11 @@ if (( $update_latest )); then
# fetch current releases file
scp "$HOST_LOGIN:$RELEASES_FILE" "./$TMP_RELEASES_FILE"
grep -P "\"latest\": \"$VERSION\"" "$TMP_RELEASES_FILE"
if [[ $? == 0 ]]; then
if [[ -n $(grep -P "\"latest\": \"$VERSION\"" "$TMP_RELEASES_FILE") ]]; then
echo "$VERSION est déjà la version la plus récente, pas de mise à jour du fichier releases.json"
else
echo "mise à jour du fichier releases.json à la version $VERSION"
sed -i -E "s/\"latest\": .+,/\"latest\": \"$VERSION\",/" "$TMP_RELEASES_FILE"
echo -e "\t\"$VERSION\": {
\t\t\"darwin\": \"Cassiopée-${VERSION}-mac.zip\",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment