summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/deployImage
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2013-12-13 13:22:26 +0000
committerramon <ramongomez@us.es>2013-12-13 13:22:26 +0000
commitf9e03adb9ed848602ff805dd0d9dfc2a27ff59ec (patch)
tree87dfbf5321a4331d5a0bb9e9ca5d896ad4d5ba4f /client/shared/scripts/deployImage
parentd473bb925da6a79bc19b0fa545a5dbf8f878ab9e (diff)
#537 #565: Solución problema al obtener salida de error de comando redirigido a tubería.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4108 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/deployImage')
-rwxr-xr-xclient/shared/scripts/deployImage4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage
index db6b70b7..9837f90d 100755
--- a/client/shared/scripts/deployImage
+++ b/client/shared/scripts/deployImage
@@ -146,7 +146,7 @@ case "$NEXTOPERATION" in
CACHE)
echo "[55] $MSG_HELP_ogRestoreImage : restoreImage CACHE $IMGNAME $DISK $PART UNICAST" | tee -a $OGLOGSESSION $OGLOGFILE
restoreImage CACHE "$IMGNAME" "$DISK" "$PART" | tee -a $OGLOGCOMMAND
- RETVAL=$?
+ RETVAL=${PIPESTATUS[0]}
RESUMERESTOREIMAGE=$(grep "Total Time:" $OGLOGCOMMAND)
;;
UNICAST)
@@ -158,7 +158,7 @@ case "$NEXTOPERATION" in
MULTICAST)
echo "[55] $MSG_HELP_ogRestoreImage : restoreImage REPO $IMGNAME $DISK $PART $PROTO $PROTOOPT" | tee -a $OGLOGSESSION $OGLOGFILE
restoreImage REPO "$IMGNAME" "$DISK" "$PART" $PROTO $PROTOOPT
- RETVAL=$?
+ RETVAL=$?
RESUMERESTOREIMAGE=$(grep "Total Time:" $OGLOGCOMMAND)
;;
esac