diff options
-rwxr-xr-x | installer/opengnsys_import.sh | 2 |
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. |