summaryrefslogtreecommitdiffstats
path: root/client/engine/System.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-02-17 13:42:36 +0000
committerramon <ramongomez@us.es>2014-02-17 13:42:36 +0000
commit130408f0d142d13b4a9b7d3b96634cda85846ec4 (patch)
tree4efc8f8ba5e18c38fbc2decb4e44b44bf1d3cf2f /client/engine/System.lib
parent6dc82b60ee05d06bd252a0aa3962f6a96d02a603 (diff)
#616: Corregir errata en función {{{ogGetCaller}}} para evitar error al lanzar un script desde terminal del cliente, eliminando carácter de guión inicial.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4151 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/System.lib')
-rwxr-xr-xclient/engine/System.lib4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/engine/System.lib b/client/engine/System.lib
index bf26e66b..86ff27ca 100755
--- a/client/engine/System.lib
+++ b/client/engine/System.lib
@@ -118,8 +118,8 @@ return $CODE
function ogGetCaller () {
# Obtener el nombre del programa o del script que ha llamado al proceso actual.
-basename $(ps hlp $PPID | awk '{if ($13~/bash/ && $14!="") print $14;
- else print $13;}')
+basename "$(ps hlp $PPID | awk '{if ($13~/bash/ && $14!="") print $14;
+ else { sub(/^-/,"",$13); print $13; } }')"
}