Skip to content

Commit

Permalink
Merge branch 'main' into create-pull-request/patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl authored Jan 8, 2024
2 parents dfaf15c + 3a9dafa commit d288231
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/new_settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,10 @@ download_rust_by_tag "$tag_to"
settings_to=$(jq ".contributes.configuration.properties" "${RA_REPO_DIR}/editors/code/package.json")
rm -rf "${RA_REPO_DIR}"

# This will exit with error code on changes. Make sure to not rely on anything running after it.
diff -u <(echo "$settings_from") <(echo "$settings_to") && echo "No changes"
# Returns with error code when there are changes.
changes=$(diff -u <(echo "$settings_from") <(echo "$settings_to") || echo "")
if [ "$changes" = "" ]; then
echo "No changes"
else
echo "$changes"
fi

0 comments on commit d288231

Please sign in to comment.