summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/createBaseImage
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2013-05-31 09:09:59 +0000
committeririna <irinagomez@us.es>2013-05-31 09:09:59 +0000
commit4b921aaa61e02e090ae080526ee4e2d49162d5c3 (patch)
tree9264622a868875c62e30c2eb67b42903b353af17 /client/shared/scripts/createBaseImage
parent3dd7b5d57731ef99d347aebc81d6d7b94c8bee02 (diff)
#565 createBaseImage y createDiffImage correccion error al borra hiberfile y pagefile
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3842 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/createBaseImage')
-rwxr-xr-xclient/shared/scripts/createBaseImage4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/shared/scripts/createBaseImage b/client/shared/scripts/createBaseImage
index 5d034567..de8b4bff 100755
--- a/client/shared/scripts/createBaseImage
+++ b/client/shared/scripts/createBaseImage
@@ -97,8 +97,8 @@ case "$(ogGetFsType $1 $2)" in
COMPRESS=$COMPRESSLINUX
;;
NTFS)
- ogDeleteFile $1 $2 pagefile.sys || echo "$?"
- ogDeleteFile $1 $2 hiberfil.sys || echo "$?"
+ [ $(ogGetPath $1 $2 pagefile.sys) ] && ogDeleteFile $1 $2 pagefile.sys
+ [ $(ogGetPath $1 $2 hiberfil.sys) ] && ogDeleteFile $1 $2 hiberfil.sys
;;
esac