summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpatcher.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/patcher.sh b/patcher.sh
index c9d1b4a..a3e737d 100755
--- a/patcher.sh
+++ b/patcher.sh
@@ -161,8 +161,8 @@ function sudo_access() {
sudo -K
# The only place 'easybashgui' fails. So adding separate functions for both tty(consoles)
# and pts(terminals). If tty not found, it returns 1, and 'zenity' is used
-tty | grep tty
-if [ $? -eq 1 ]; then
+
+if [ ! -z $(pidof X) ] ; then
while true
do