Skip to content

Commit

Permalink
fix: read the first value
Browse files Browse the repository at this point in the history
  • Loading branch information
paolomainardi authored Jul 22, 2024
1 parent 0804df2 commit 74acfb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ while IFS= read -r project; do

# Parse and join languages
LANGUAGES=$(echo $LANGUAGES_DATA | jq -r 'keys | join(",")')
MAIN_LANGUAGE=$(echo $LANGUAGES_DATA | jq -r 'keys | .[0]')
MAIN_LANGUAGE=$(echo $LANGUAGES_DATA | jq 'to_entries | .[0].key')

# Check if no languages are found
if [ -z "$LANGUAGES" ]; then
Expand Down

0 comments on commit 74acfb9

Please sign in to comment.