Skip to content

Commit

Permalink
Solution for jamesob#81
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessel van der Veen committed Aug 17, 2018
1 parent 20369d7 commit cba41ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions desk
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,10 @@ get_running_shell() {
fi

if [ ! -z "$CMDLINE_SHELL" ]; then
basename "$CMDLINE_SHELL"
exit
if [[ ! $CMDLINE_SHELL = *$SHELL* ]]; then
basename "$CMDLINE_SHELL"
exit
fi
fi

# Fall back to $SHELL otherwise.
Expand Down

0 comments on commit cba41ef

Please sign in to comment.