... | ... |
@@ -322,6 +322,7 @@ EOcontent |
322 | 322 |
} |
323 | 323 |
|
324 | 324 |
function save_database () { |
325 |
+ test -n "$database" -a -n "$in_ram_database" || return |
|
325 | 326 |
if test -r "$database" && md5sum $in_ram_database | sed "s,$in_ram_database,$database," | md5sum --status -c -; then |
326 | 327 |
rm -f $in_ram_database |
327 | 328 |
elif test -w "$database"; then |