mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
No need for the environment for the info required.
To get `-e`(environment) for the `ps` utility in FreeBSD you need `procfs`. We can still get the info we need without it.
This commit is contained in:
parent
e0c519a503
commit
af8530dc0c
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,command | grep $$ | grep -v grep | tr -s ' '` | cut -d ' ' -f 2)
|
||||
CALLER=$(echo `ps a -o 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