diff options
author | irina <irinagomez@us.es> | 2018-03-28 11:20:36 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2018-03-28 11:20:36 +0000 |
commit | 305c2563a96d76587329a463132d95a3b11c45fe (patch) | |
tree | aec813a4bc2603ca3ebaacebe6af82ec99bb61b5 /client/engine/Image.lib | |
parent | 6bb748bfd6df24cf0fd7b2b6fe03f889e3ba336e (diff) |
Se corrigen erratas por usar el código de error de ogGetPath
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5688 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Image.lib')
-rwxr-xr-x | client/engine/Image.lib | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 13d234ec..092befed 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -824,7 +824,7 @@ fi [ $# == 3 ] || ogRaiseError $OG_ERR_FORMAT || return $? # Procesar parámetros. DISK=$(ogDiskToDev "$3") || return $? -IMGFILE=$(ogGetPath "$1" "$2.mbr") || return $? +IMGFILE=$(ogGetPath "$1" "$2.mbr") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? # Restaurar imagen del MBR. @@ -860,7 +860,7 @@ fi [ $# == 3 ] || ogRaiseError $OG_ERR_FORMAT || return $? # Procesar parámetros. DISK=$(ogDiskToDev "$3") || return $? -IMGFILE=$(ogGetPath "$1" "$2.mbr") || return $? +IMGFILE=$(ogGetPath "$1" "$2.mbr") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? # Restaurar imagen del MBR. @@ -1014,7 +1014,7 @@ if [ "$*" == "help" ]; then fi # Error si no se reciben 2 parámetros. [ $# == 2 ] || ogRaiseError $OG_ERR_FORMAT || return $? -IMGFILE=$(ogGetPath "$1" "$2.img") || return $? +IMGFILE=$(ogGetPath "$1" "$2.img") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? ogGetImageInfo $IMGFILE | awk -F: '{print $1}' } @@ -1031,7 +1031,7 @@ if [ "$*" == "help" ]; then fi # Error si no se reciben 2 parámetros. [ $# == 2 ] || ogRaiseError $OG_ERR_FORMAT || return $? -IMGFILE=$(ogGetPath "$1" "$2.img") || return $? +IMGFILE=$(ogGetPath "$1" "$2.img") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? ogGetImageInfo $IMGFILE | awk -F: '{print $2}' } @@ -1048,7 +1048,7 @@ if [ "$*" == "help" ]; then fi # Error si no se reciben 2 parámetros. [ $# == 2 ] || ogRaiseError $OG_ERR_FORMAT || return $? -IMGFILE=$(ogGetPath "$1" "$2.img") || return $? +IMGFILE=$(ogGetPath "$1" "$2.img") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? ogGetImageInfo $IMGFILE | awk -F: '{print $3}' } @@ -1068,7 +1068,7 @@ fi # Error si no se reciben 2 parámetros. [ $# == 2 ] || ogRaiseError $OG_ERR_FORMAT || return $? # Error si el fichero de imagen no es accesible. -IMGFILE=$(ogGetPath "$1" "$2.img") || return $? +IMGFILE=$(ogGetPath "$1" "$2.img") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? # Devuelve el tamaño de la imagen en KB. @@ -1141,7 +1141,7 @@ fi [ $# == 3 ] || ogRaiseError $OG_ERR_FORMAT || return $? # Procesar parámetros. DISK=$(ogDiskToDev "$3") || return $? -IMGFILE=$(ogGetPath "$1" "$2.gpt") || return $? +IMGFILE=$(ogGetPath "$1" "$2.gpt") [ -r "$IMGFILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$IMGFILE" || return $? # Restaurar tabla GPT del disco. |