#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
remotes/github/debian-pkg
ramon 2014-02-17 13:42:36 +00:00
parent 6dc82b60ee
commit 130408f0d1
1 changed files with 2 additions and 2 deletions

View File

@ -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; } }')"
}