updated stuff

This commit is contained in:
Nikolas Weger 2018-10-05 16:20:39 +02:00
parent c0c570fcd9
commit 00fec9b61b
13 changed files with 1484 additions and 345 deletions

View file

@ -287,7 +287,7 @@ get_running_shell() {
else
# Strip leading dash for login shells.
# If the parent process is a login shell, guess bash.
local CMDLINE_SHELL=$(ps -o args -p $PPID | tail -1 | sed -e 's/login/bash/' -e 's/^-//')
local CMDLINE_SHELL=$(ps -o comm= -p $PPID | tail -1 | sed -e 's/login/bash/' -e 's/^-//')
fi
if [ ! -z "$CMDLINE_SHELL" ]; then
@ -331,4 +331,3 @@ case "$1" in
*) cmd_current "$@" ;;
esac
exit 0