We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e83c5c0 commit 095a9f1Copy full SHA for 095a9f1
1 file changed
bin/v-update-user-backup-exclusions
@@ -24,9 +24,8 @@ is_file_available() {
24
}
25
26
is_file_valid() {
27
- exclude="[!$#&;()\]"
28
- vcontent=$(cat $vfile)
29
- if [[ "$vcontent" =~ $exclude ]]; then
+ exclude="[!|#|$|^|&|(|)|{|}|<|>|?|\|\"|;|%|\`]"
+ if [[ "$(cat $vfile)" =~ $exclude ]]; then
30
check_result $E_INVALID "invalid characters in the exlusion list"
31
fi
32
0 commit comments