Skip to content

Commit 095a9f1

Browse files
committed
backup validation fix
1 parent e83c5c0 commit 095a9f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/v-update-user-backup-exclusions

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ is_file_available() {
2424
}
2525

2626
is_file_valid() {
27-
exclude="[!$#&;()\]"
28-
vcontent=$(cat $vfile)
29-
if [[ "$vcontent" =~ $exclude ]]; then
27+
exclude="[!|#|$|^|&|(|)|{|}|<|>|?|\|\"|;|%|\`]"
28+
if [[ "$(cat $vfile)" =~ $exclude ]]; then
3029
check_result $E_INVALID "invalid characters in the exlusion list"
3130
fi
3231
}

0 commit comments

Comments
 (0)