From 2edc4cb27ef6d38e397fae835efb5849d73400e5 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Tue, 21 Jan 2020 11:20:52 +0100 Subject: #951: Applying commit `b5db03a` to the import script. --- installer/opengnsys_import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/opengnsys_import.sh b/installer/opengnsys_import.sh index 23e8e72c..29d279e9 100755 --- a/installer/opengnsys_import.sh +++ b/installer/opengnsys_import.sh @@ -146,7 +146,7 @@ function updateSqlFile() $CATALOG-$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-)" ;; $CATALOG-*-$NEWVERSION.sql) # Última actualización de versión final-1 a final. -- cgit v1.2.3-18-g5258