We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c89e5c commit 7793810Copy full SHA for 7793810
1 file changed
lib/easybashgui.lib
@@ -1436,8 +1436,8 @@ elif [ "${mode}" = "gum" ]
1436
#
1437
testo="${@}"
1438
1439
- #which_terminal="$(ps -o comm= -p $(ps -o ppid= -p $(ps -o ppid= -p $$ )))"
1440
which_terminal="$(ps -o comm= -p $(ps -o ppid= -p $$ ))"
+ [[ ${which_terminal} == *"sh" ]] && which_terminal="$(ps -o comm= -p $(ps -o ppid= -p $(ps -o ppid= -p $$ )))"
1441
1442
#########################################
1443
0 commit comments