Fix incompatible pgrep option for termux in rc.d/tmux

This commit is contained in:
Xavier Logerais 2017-01-27 10:44:59 +01:00
parent 2baa5f33d0
commit dff6dcabb4

View File

@ -3,7 +3,7 @@
# GNU Screen stuff
if ( which tmux &> /dev/null )
then
if [ $(pgrep -c "tmux") -gt 0 ]
if [ $(pgrep "tmux" | wc -l) -gt 0 ]
then
if [[ $TERM != screen* ]]
then