summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_import.sh2
1 files changed, 1 insertions, 1 deletions
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.