Mercurial > gemma
changeset 3995:074cf9349c71
Fixed schema update-script to ignore text files.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 17 Jul 2019 16:40:29 +0200 |
parents | 0eb6b5fbeea3 |
children | a2921151b193 |
files | schema/update-db.sh |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/schema/update-db.sh Wed Jul 17 16:08:09 2019 +0200 +++ b/schema/update-db.sh Wed Jul 17 16:40:29 2019 +0200 @@ -100,7 +100,7 @@ for d in $BASEDIR/updates/* ; do new_ver=$( basename $d ) - if [ -d "$d" -a "$new_ver" -gt $current_ver ] ; then + if [ -d "$d" ] && [ "$new_ver" -gt $current_ver ] ; then echo "Running updates for $new_ver ..." sql=$( cat `echo "$d/"* | sort -n` )