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/shared/scripts/deployImage | |
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/shared/scripts/deployImage')
-rwxr-xr-x | client/shared/scripts/deployImage | 3 |
1 files changed, 2 insertions, 1 deletions
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" |