diff options
author | ramon <ramongomez@us.es> | 2016-06-16 12:03:40 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-06-16 12:03:40 +0000 |
commit | eb1f900959a581eb41d2861809f750687abcf7e4 (patch) | |
tree | 07967bdc36f6878cfc2a85f854844ebececb3738 /client | |
parent | 8bd836ac97a88bd12eb1be1886d833fa8c26b3e9 (diff) |
#512: Corregir erratas en revisión r4963
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4964 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client')
-rwxr-xr-x | client/engine/Cache.lib | 2 | ||||
-rwxr-xr-x | client/shared/scripts/initCache | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/client/engine/Cache.lib b/client/engine/Cache.lib index dfc72a91..4463cc54 100755 --- a/client/engine/Cache.lib +++ b/client/engine/Cache.lib @@ -149,7 +149,7 @@ DISK=$(ogDiskToDev $NDISK) # Desmontar todos los sistemas de archivos del disco. ogUnmountAll $NDISK 2>/dev/null -case "$(ogGetPartitionTableType $1)" in +case "$(ogGetPartitionTableType $NDISK)" in GPT) # Si la tabla de particiones no es valida, volver a generarla. [ ! $(sgdisk -p $DISK 2>&1 >/dev/null) ] || echo -e "2\nw\nY\n" | gdisk $DISK diff --git a/client/shared/scripts/initCache b/client/shared/scripts/initCache index cff0b53a..2761db8a 100755 --- a/client/shared/scripts/initCache +++ b/client/shared/scripts/initCache @@ -52,7 +52,6 @@ if [ -n "${SIZE//[-0-9]/}" ] || [ $SIZE -lt -1 ]; then ogRaiseError $OG_ERR_FORMAT "$MSG_FORMAT: $EXECFORMAT" exit $? fi - exit # Si tamaño=0, no hacer nada. if [ $SIZE -eq 0 ]; then echo "No modificar la caché local." @@ -65,7 +64,7 @@ if [ $SIZE -eq -1 ]; then ogDeleteCache else # Si la caché actual está definida en otro disco y partición, se elimina. - if [ "$NDISK $NPART" = "$(ogFindCache)" ]; then + if [ "$NDISK $NPART" != "$(ogFindCache)" ]; then echo "[10] Detectada otra caché, eliminarla" ogUnmountCache 2>/dev/null ogDeleteCache |