summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2020-01-21 11:20:52 +0100
committerRamón M. Gómez <ramongomez@us.es>2020-01-21 11:20:52 +0100
commit2edc4cb27ef6d38e397fae835efb5849d73400e5 (patch)
treef9d17132ff14c62e65a07fc4795982ad9913faa6 /installer
parentb44b933b35fe7d46d9b390a07fe31a00d1ab7fe6 (diff)
#951: Applying commit `b5db03a` to the import script.
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.