diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2020-01-21 11:09:45 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2020-01-21 11:09:45 +0100 |
commit | b5db03afe1c469967881ccd9e4b1b839aa3d410c (patch) | |
tree | c2cd15f3a15eef1a1e56158114452033b5d87b14 | |
parent | 253cfa9284b8430886d0a98825a8967201a95600 (diff) |
#951: Fix bug when `opengnsys_update.sh` applies incremental database updates.
-rwxr-xr-x | installer/opengnsys_update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 45292dea..0ad98de6 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -875,7 +875,7 @@ function updateDatabase() $OPENGNSYS_DATABASE-$OLDVERSION-*.sql) # Actualización de versión n a n+1. FILES="$FILES $file" - OLDVERSION="$(echo $file | cut -f3 -d-)" + OLDVERSION="$(echo ${file%.*} | cut -f3 -d-)" ;; $OPENGNSYS_DATABASE-*-$NEWVERSION.sql) # Última actualización de versión final-1 a final. |