Showing 1 changed files with 4 additions and 2 deletions
+4 -2
.fgfs/fgaddon
... ...
@@ -213,8 +213,10 @@ function update_database () {
213 213
             fi
214 214
 
215 215
             if [[ "$property" = /PropertyList@($data_pattern) ]]; then
216
-                eval "data[${property/\/PropertyList}]=\"${VALUE//\"/\\\"}\""
217
-                data[${property/\/PropertyList}]=$(tr '\n' ' ' <<< ${data[${property/\/PropertyList}]} | sed -r 's/^\s*//;s/\s+/ /g;s/\s*$//')
216
+                if test -z "${data[${property/\/PropertyList}]}"; then
217
+                    eval "data[${property/\/PropertyList}]=\"${VALUE//\"/\\\"}\""
218
+                    data[${property/\/PropertyList}]=$(tr '\n' ' ' <<< ${data[${property/\/PropertyList}]} | sed -r 's/^\s*//;s/\s+/ /g;s/\s*$//')
219
+                fi
218 220
             fi
219 221
 
220 222
 #            if test -n "$_TAG"; then