Skip to content

Commit 7793810

Browse files
committed
yet an other minimal bugfix in 'gum' mode
1 parent 9c89e5c commit 7793810

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/easybashgui.lib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,8 +1436,8 @@ elif [ "${mode}" = "gum" ]
14361436
#
14371437
testo="${@}"
14381438
#
1439-
#which_terminal="$(ps -o comm= -p $(ps -o ppid= -p $(ps -o ppid= -p $$ )))"
14401439
which_terminal="$(ps -o comm= -p $(ps -o ppid= -p $$ ))"
1440+
[[ ${which_terminal} == *"sh" ]] && which_terminal="$(ps -o comm= -p $(ps -o ppid= -p $(ps -o ppid= -p $$ )))"
14411441
#
14421442
#########################################
14431443
#

0 commit comments

Comments
 (0)