Skip to content

Commit

Permalink
Merge pull request #82 from wesselvdv/master
Browse files Browse the repository at this point in the history
Solution for #81 (Wrong shell interpreter determined.)
  • Loading branch information
jamesob committed Aug 31, 2018
2 parents 20369d7 + ba5a734 commit 775cc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 775cc4a

Please sign in to comment.