améliore la vérification de modification de la base...
...de données
... | ... |
@@ -134,7 +134,7 @@ function trap_exit () { |
134 | 134 |
fi |
135 | 135 |
done |
136 | 136 |
|
137 |
- if test -r "$database" && md5sum $in_ram_database | sed "s,$in_ram_database,$database," | md5sum --status -c -; then |
|
137 |
+ if test -r "$database" && sqldiff=$(sqldiff $in_ram_database $database) && test -z "$sqldiff"; then |
|
138 | 138 |
echo "no changes in $database" |
139 | 139 |
elif test -w "$database"; then |
140 | 140 |
rm -f "$database" |