Skip to content

Commit 1a341a6

Browse files
committed
Enforce min duration
1 parent 99f5095 commit 1a341a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/v-add-fastcgi-cache

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ if ! [[ "$duration" =~ ^[0-9].*[s|m|d]$ ]]; then
4242
echo "Invalid duration";
4343
exit 2;
4444
fi
45+
46+
if [[ "$duration" =~ ^[0].*[s|m|d]$ ]]; then
47+
echo "Invalid duration";
48+
exit 2;
49+
fi
50+
4551
# Perform verification if read-only mode is enabled
4652
check_hestia_demo_mode
4753

0 commit comments

Comments
 (0)