summaryrefslogtreecommitdiffstats
path: root/client/engine/PostConf.lib
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2018-03-28 11:20:36 +0000
committeririna <irinagomez@us.es>2018-03-28 11:20:36 +0000
commit305c2563a96d76587329a463132d95a3b11c45fe (patch)
treeaec813a4bc2603ca3ebaacebe6af82ec99bb61b5 /client/engine/PostConf.lib
parent6bb748bfd6df24cf0fd7b2b6fe03f889e3ba336e (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/engine/PostConf.lib')
-rwxr-xr-xclient/engine/PostConf.lib6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/engine/PostConf.lib b/client/engine/PostConf.lib
index 4f760255..1f04532f 100755
--- a/client/engine/PostConf.lib
+++ b/client/engine/PostConf.lib
@@ -42,9 +42,9 @@ case "$(ogGetOsType $1 $2)" in
;;
Windows)
# Borrar ficheros de hibernación y paginación de Windows.
- ogGetPath $1 $2 pagefile.sys &>/dev/null && ogDeleteFile $1 $2 pagefile.sys
- ogGetPath $1 $2 hiberfil.sys &>/dev/null && ogDeleteFile $1 $2 hiberfil.sys
- ogGetPath $1 $2 swapfile.sys &>/dev/null && ogDeleteFile $1 $2 swapfile.sys
+ [ -n "$(ogGetPath $1 $2 pagefile.sys)" ] && ogDeleteFile $1 $2 pagefile.sys
+ [ -n "$(ogGetPath $1 $2 hiberfil.sys)" ] && ogDeleteFile $1 $2 hiberfil.sys
+ [ -n "$(ogGetPath $1 $2 swapfile.sys)" ] && ogDeleteFile $1 $2 swapfile.sys
;;
esac