Skip to content

Commit

Permalink
Merge pull request #1134 from thomasjacquin/postToMap.sh-fix-bug-with…
Browse files Browse the repository at this point in the history
…-%d-versus-%e

postToMap.sh: fix bug with %d versus %e
  • Loading branch information
EricClaeys authored Apr 9, 2022
2 parents 4a7c5fa + e8853f6 commit 83615f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/postToMap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if [ "${UPLOAD}" = "false" ]; then
digit="${MACHINE_ID: -1}"
decimal=$(( 16#$digit ))
parity="$(( decimal % 2 ))"
(( $(date +%d) % 2 == parity )) && UPLOAD=true
(( $(date +%e) % 2 == parity )) && UPLOAD=true
fi

RETURN_CODE=0
Expand Down

0 comments on commit 83615f0

Please sign in to comment.