Update install-release.sh

This commit is contained in:
チセ 2024-04-05 19:42:14 +08:00 committed by GitHub
parent b669a5c054
commit db99a5caa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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