From b5db03afe1c469967881ccd9e4b1b839aa3d410c Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Tue, 21 Jan 2020 11:09:45 +0100 Subject: #951: Fix bug when `opengnsys_update.sh` applies incremental database updates. --- installer/opengnsys_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') 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. -- cgit v1.2.3-18-g5258