Skip to content

Commit

Permalink
make random number an int
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Apr 27, 2021
1 parent 1a923fc commit fc73844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ if [ "$MODE" == "test" ]; then
# set a random date. ofen tools put time stamps in output files
# for tools undergoing short reviews (<1d) these will produce
# problems with weekly checks that may be avoided by this
rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l)
rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l | sed 's/\..*$//')
randdate=$(date -d "$rand" +%Y%m%d %H:%M)
sudo date -s "$randdate"

Expand Down

0 comments on commit fc73844

Please sign in to comment.