summaryrefslogtreecommitdiffstats
path: root/client/engine/File.lib
diff options
context:
space:
mode:
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 bbe79ec5..f37e947d 100755
--- a/client/engine/File.lib
+++ b/client/engine/File.lib
@@ -265,9 +265,9 @@ case $# in
return $? ;;
esac
-# Eliminar caracteres \c / iniciales, finales y duplicados.
+# Eliminar caracteres \c / duplicados y finales.
# /* (comentario Doxygen)
-FILE="$(echo $FILE|sed -e 's/\(\/\)*\1/\//g' -e 's/^\///' -e 's/\/$//')"
+FILE="$(echo $FILE|sed -e 's/\(\/\)*\1/\//g; s/\/$//')"
# Comprobar si existe el fichero para reducir tiempos.
if [ -e "$FILE" ]; then
FILEPATH="$FILE"