summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-03-17 11:48:19 +0000
committerramon <ramongomez@us.es>2014-03-17 11:48:19 +0000
commit1f03f6e1e23f42a55bfaffcdd63852be4562866e (patch)
treea92bec643842b475061d1d6edce1f0a2d7cbd5f3
parenta73649da0a35ef4e4947a939d8bf2491c6bcaff2 (diff)
#637: Corregir erratas en r4187.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4188 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xclient/engine/Disk.lib4
-rwxr-xr-xclient/engine/Image.lib2
2 files changed, 3 insertions, 3 deletions
diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib
index 293aac3f..8d6d1d0a 100755
--- a/client/engine/Disk.lib
+++ b/client/engine/Disk.lib
@@ -101,13 +101,13 @@ while [ $# -gt 0 ]; do
SIZE=$[SIZE*2]
# Comprobar si la partición es extendida.
if [ $ID = 5 ]; then
- [ $PART -gt 4 ] && return (ogRaiseError $OG_ERR_FORMAT; echo $?)
+ [ $PART -gt 4 ] && return $(ogRaiseError $OG_ERR_FORMAT; echo $?)
EXTSTART=$START
EXTSIZE=$SIZE
fi
# Incluir particiones lógicas dentro de la partición extendida.
if [ $PART = 5 ]; then
- [ -z "$EXTSTART" ] && return (ogRaiseError $OG_ERR_FORMAT; echo $?)
+ [ -z "$EXTSTART" ] && return $(ogRaiseError $OG_ERR_FORMAT; echo $?)
START=$EXTSTART
SECTORS=$[EXTSTART+EXTSIZE]
fi
diff --git a/client/engine/Image.lib b/client/engine/Image.lib
index 59d17809..971007aa 100755
--- a/client/engine/Image.lib
+++ b/client/engine/Image.lib
@@ -471,7 +471,7 @@ if [ "$*" == "help" ]; then
return
fi
# Error si no se reciben 4 parámetros.
-[ $# == 4 ] || ogRaiseError $OG_ERR_FORMAT || return $?)
+[ $# == 4 ] || ogRaiseError $OG_ERR_FORMAT || return $?
# Procesar parámetros.
PART="$(ogDiskToDev $3 $4)" || return $(ogRaiseError $OG_ERR_NOTFOUND " $3 $4"; echo $?)
#IMGTYPE=$(ogGetImageType "$1" "$2")