summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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")