diff options
Diffstat (limited to 'client/shared/scripts/deployImage')
-rwxr-xr-x | client/shared/scripts/deployImage | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage index 9406d80e..d74d3ac2 100755 --- a/client/shared/scripts/deployImage +++ b/client/shared/scripts/deployImage @@ -98,7 +98,12 @@ fi #Informacioin previa de la imagen IMGOS=$(ogGetImageInfo `ogGetPath $MODE $IMGNAME.img`) -[ -n "$IMGOS" ] || exit $(ogRaiseError session $OG_ERR_NOTFOUND "$REPO $2"; echo $?) +case $? in + 0) ;; + 1) ogRaiseError session $OG_ERR_NOTFOUND "$REPO $2" || exit $? ;; + 5) ogRaiseError session $OG_ERR_IMAGEFILE "$REPO $2" || exit $? ;; + *) ogRaiseError session $OG_ERR_GENERIC || exit $? ;; +esac 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" |