summaryrefslogtreecommitdiffstats
path: root/client/engine/File.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2009-11-18 17:44:04 +0000
committerramon <ramongomez@us.es>2009-11-18 17:44:04 +0000
commita3fb8b21053e074dae37b3f7ef51a18276a4afdb (patch)
tree3d240140b8c11bf907104b1de5f2e7e0254b0b66 /client/engine/File.lib
parentdce072b69f12c9b0a4c10ed857cb91e51e50ce1c (diff)
Solucionado problema con funciĆ³n ogGetParentPath, errata en instalador y script createImage para Consola Web.
git-svn-id: https://opengnsys.es/svn/trunk@582 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/File.lib')
-rwxr-xr-xclient/engine/File.lib14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/engine/File.lib b/client/engine/File.lib
index 9134c886..7a4f1c66 100755
--- a/client/engine/File.lib
+++ b/client/engine/File.lib
@@ -57,8 +57,8 @@ function ogDeleteFile () {
local FILE
#/// Comprobar que existe el fichero y borrarlo.
FILE=$(ogGetPath "$@")
-[ -n "$FILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$*" || reutrn $?
-rm -f "$FILE" || ogRaiseError $OG_ERR_NOTFOUND "$*" || reutrn $?
+[ -n "$FILE" ] || ogRaiseError $OG_ERR_NOTFOUND "$*" || return $?
+rm -f "$FILE" || ogRaiseError $OG_ERR_NOTFOUND "$*" || return $?
}
@@ -76,8 +76,8 @@ function ogDeleteTree () {
local DIR
#/// Comprobar que existe el directorio y borrarlo con su contenido.
DIR=$(ogGetPath "$@")
-[ -n "$DIR" ] || ogRaiseError $OG_ERR_NOTFOUND "$*" || reutrn $?
-rm -fr "$DIR" || ogRaiseError $OG_ERR_NOTFOUND "$*" || reutrn $?
+[ -n "$DIR" ] || ogRaiseError $OG_ERR_NOTFOUND "$*" || return $?
+rm -fr "$DIR" || ogRaiseError $OG_ERR_NOTFOUND "$*" || return $?
}
@@ -163,8 +163,8 @@ function ogGetParentPath () {
local PARENT
case $# in
1) PARENT="$(dirname "$1")" ;;
- 2) PARENT="$1 $(dirname "$2")" ;;
- 3) PARENT="$1 $2 $(dirname "$3")" ;;
+ 2) PARENT="$1 $(dirname "/$2")" ;;
+ 3) PARENT="$1 $2 $(dirname "/$3")" ;;
*) ogRaiseError $OG_ERR_FORMAT
return $? ;;
esac
@@ -184,7 +184,7 @@ function ogMakeDir () {
local PARENT DIR
PARENT=$(ogGetParentPath "$@") || return $?
DIR="$(basename "${!#}")"
-mkdir -p "$PARENT/$DIR" || ogRaiseError $OG_ERR_NOTFOUND "$*" || reutrn $?
+mkdir -p "$PARENT/$DIR" || ogRaiseError $OG_ERR_NOTFOUND "$*" || return $?
}