From e0e2f825148f2777543f09e52777de6b9da149f1 Mon Sep 17 00:00:00 2001 From: netcon Date: Fri, 2 Jul 2021 15:54:00 +0800 Subject: [PATCH] fix: can not install through a ssh tunnel based vnc remote desktop --- fatrat | 2 +- setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fatrat b/fatrat index 669353ee..2473f755 100644 --- a/fatrat +++ b/fatrat @@ -1555,7 +1555,7 @@ sleep 0.5 fi #Checking if user is using a local terminal or a remote shell -if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then +if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && [ -z "$(xdpyinfo 2>/dev/null)" ]; then echo -e $red [✔]::[Terminal]: remote ; echo "" echo -e $red "Fatrat & Setup does not work over a remote secure shell ." diff --git a/setup.sh b/setup.sh index ce94c74c..33ca7011 100644 --- a/setup.sh +++ b/setup.sh @@ -1288,7 +1288,7 @@ echo -e "$green" "Checking type of shell ...." sleep 1 #Check if user is using a remote shell or a local terminal -if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then +if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] && [ -z "$(xdpyinfo 2>/dev/null)" ]; then echo "[remote]" echo "" echo -e "$red" "Fatrat & Setup does not work over a remote secure shell ."