mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
fix wildcards in backup exclusion list
This commit is contained in:
parent
b89f602f7b
commit
dfb01cc473
2 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@ source $VESTA/func/main.sh
|
|||
|
||||
# JSON list function
|
||||
json_list() {
|
||||
set -f
|
||||
i=1
|
||||
echo '{'
|
||||
echo ' "WEB": {'
|
||||
|
@ -27,7 +28,7 @@ json_list() {
|
|||
object_keys=$(echo ${object//:/ } |wc -w)
|
||||
for key in $(echo "${object/:/ }"); do
|
||||
if [ "$j" -eq 1 ]; then
|
||||
echo -n " \"$key\": "
|
||||
echo -n " \"${key}\": "
|
||||
if [ "$object_keys" -eq 1 ]; then
|
||||
echo -n '""'
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue