This commit is contained in:
netcon 2022-02-25 02:37:03 +01:00 committed by GitHub
commit 75e2e540c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
fatrat
View File

@ -1560,7 +1560,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 ."

View File

@ -1412,7 +1412,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 ."