summaryrefslogtreecommitdiffstats
path: root/client/engine/File.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-12-04 10:51:34 +0000
committerramon <ramongomez@us.es>2012-12-04 10:51:34 +0000
commitdf1ffe51d0e8a7c8f857d7004a883e28982929e2 (patch)
tree5718d75c09085efab8a0fe2bddf453de8d7c0a2a /client/engine/File.lib
parent69fe46e4b8318ea2aefc07045fbb67b7c8155586 (diff)
Versión 1.0.5: Corregir errata en función {{{ogGetPath}}} para evitar que un fichero se use como si fuese un directorio.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3451 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/File.lib')
-rwxr-xr-xclient/engine/File.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/engine/File.lib b/client/engine/File.lib
index 074cd234..e5eb19d5 100755
--- a/client/engine/File.lib
+++ b/client/engine/File.lib
@@ -237,8 +237,8 @@ PREVFILE=""
FILEPATH="/"
while [ "$FILE" != "$PREVFILE" ]; do
# Busca el nombre correcto en el directorio actual.
- cd "$FILEPATH"
- FILEPATH="${FILEPATH}/$(ls -A | grep -i -m1 "^${FILE%%/*}$")" || return $?
+ cd "$FILEPATH" 2>/dev/null || FILE=""
+ FILEPATH="${FILEPATH}/$(ls -A 2>/dev/null | grep -i -m1 "^${FILE%%/*}$")" || return $?
PREVFILE="$FILE"
FILE="${FILE#*/}"
done