#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-378ad31fedc9remotes/github/debian-pkg
parent
6dc82b60ee
commit
130408f0d1
|
@ -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; } }')"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue