Try alternative syntax to make codacy happy

The codacy issue "$/${} is unnecessary on arithmetic variables"
seems to not apply to $(echo $((1 + $RANDOM % 10))), but we
try another syntax to make her happy.
This commit is contained in:
ghubstan 2021-01-29 11:47:37 -03:00
parent 27a4a31dcc
commit d580e77bf8
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -113,7 +113,7 @@ while : ; do
printbreak
sleeptraced 3
RANDOM_WAIT=$(echo $((1 + $RANDOM % 10)))
RANDOM_WAIT=$(echo $[$RANDOM % 10 + 1])
printdate "Bob will take Alice's offer in $RANDOM_WAIT seconds..."
sleeptraced "$RANDOM_WAIT"