Update install-release.sh
This commit is contained in:
parent
b669a5c054
commit
db99a5caa9
|
@ -300,7 +300,7 @@ judgment_parameters() {
|
|||
N_UP_SERVICE='1'
|
||||
;;
|
||||
'--logrotate')
|
||||
if grep -qE '\b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b' <<< "$2";then
|
||||
if ! grep -qE '\b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b' <<< "$2";then
|
||||
echo "error: Wrong format of time, it should be in the format of 12:34:56, under 10:00:00 should be start with 0, e.g. 01:23:45."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue