From a3fb8b21053e074dae37b3f7ef51a18276a4afdb Mon Sep 17 00:00:00 2001 From: ramon Date: Wed, 18 Nov 2009 17:44:04 +0000 Subject: Solucionado problema con funciĆ³n ogGetParentPath, errata en instalador y script createImage para Consola Web. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/trunk@582 a21b9725-9963-47de-94b9-378ad31fedc9 --- client/engine/File.lib | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'client/engine/File.lib') 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 $? } -- cgit v1.2.3-18-g5258