Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlk committed Apr 14, 2024
1 parent e120ef0 commit da41f58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ github::calculate_total_modifications() {
done

if [ "$ignore" = false ]; then
local add=$(_jq '.additions')
local del=$(_jq '.deletions')
local -i add=$(echo ${file} | base64 -d | jq '.additions | numbers')
local -i del=$(echo ${file} | base64 -d | jq '.deletions | numbers')

log::message "$add"
log::message "$del"

((additions += $(_jq '.additions')))
((additions += $(_jq '.additions | numbers')))

if [ "$ignore_file_deletions" != "true" ]; then
((deletions += $(_jq '.deletions')))
((deletions += $(_jq '.deletions | numbers')))
fi
fi
done
Expand Down

0 comments on commit da41f58

Please sign in to comment.