修复获取分钟数带有0开头的分钟导致的$(($RANDOM % $current_min))出错

This commit is contained in:
AboutCXJ
2021-02-02 12:33:39 +08:00
committed by Gitee
parent e8584faed3
commit 3df8adf63e

View File

@ -98,7 +98,7 @@ echo "删除原有docker_entrypoint.sh任务"
sed -ie '/'docker_entrypoint.sh'/d' ${mergedListFile}
current_min=$(date +%M)
current_min=$(date +%-M)
echo "当前分钟:${current_min}"
#当前分钟大于1则随机一个小于当前分钟的否则为59