mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
FreeBSD 8.2 ps
utility knows command
not cmd
.
This commit is contained in:
parent
a80a84069c
commit
e0c519a503
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ if [ $(whoami) != "root" ] ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
CALLER=$(echo `ps a -eo pid,cmd | grep $$ | grep -v grep | tr -s ' '` | cut -d ' ' -f 2)
|
||||
CALLER=$(echo `ps a -eo pid,command | grep $$ | grep -v grep | tr -s ' '` | cut -d ' ' -f 2)
|
||||
echo " * INFO: ${CALLER} $0 -- Version ${ScriptVersion}"
|
||||
#--- FUNCTION ----------------------------------------------------------------
|
||||
# NAME: __exit_cleanup
|
||||
|
|
Loading…
Add table
Reference in a new issue