updated stuff
This commit is contained in:
parent
c0c570fcd9
commit
00fec9b61b
13 changed files with 1484 additions and 345 deletions
3
bin/desk
3
bin/desk
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue