From 305c2563a96d76587329a463132d95a3b11c45fe Mon Sep 17 00:00:00 2001 From: irina Date: Wed, 28 Mar 2018 11:20:36 +0000 Subject: Se corrigen erratas por usar el código de error de ogGetPath MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@5688 a21b9725-9963-47de-94b9-378ad31fedc9 --- client/shared/scripts/deployImage | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/shared/scripts/deployImage') diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage index 51847110..824da2af 100755 --- a/client/shared/scripts/deployImage +++ b/client/shared/scripts/deployImage @@ -97,7 +97,8 @@ else fi #Informacioin previa de la imagen -IMGOS=$(ogGetImageInfo `ogGetPath $MODE $IMGNAME.img`) || exit $(ogRaiseError session $OG_ERR_NOTFOUND "$REPO $2"; echo $?) +IMGOS=$(ogGetImageInfo `ogGetPath $MODE $IMGNAME.img`) +[ -n "$IMGOS" ] || exit $(ogRaiseError session $OG_ERR_NOTFOUND "$REPO $2"; echo $?) IMGSIZE=$(ls -s `ogGetPath $MODE $IMGNAME.img`| cut -f1 -d" ") ogEcho log session "[1] REPO=$REPO IMG-FILE=$IMGNAME.img SIZE=$IMGSIZE (KB) METADATA=$IMGOS" -- cgit v1.2.3-18-g5258