From 83082da416832d81c10c61ce46fff68a96047d9e Mon Sep 17 00:00:00 2001 From: LightCat Date: Mon, 25 Mar 2019 21:33:04 +0100 Subject: [PATCH] Attach to current users tf2 instead of newest --- attach | 2 +- attach-gdb | 2 +- attach-libnamed.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/attach b/attach index 2881a4b0..7898f2ab 100755 --- a/attach +++ b/attach @@ -1,7 +1,7 @@ #!/usr/bin/env bash sudo ./scripts/auto-updater -line=$(pidof hl2_linux) +line=$(pgrep -u $SUDO_USER hl2_linux) arr=($line) inst=$1 if [ $# == 0 ]; then diff --git a/attach-gdb b/attach-gdb index 2ecca801..2ee350bc 100755 --- a/attach-gdb +++ b/attach-gdb @@ -1,7 +1,7 @@ #!/usr/bin/env bash sudo ./scripts/auto-updater -line=$(pidof hl2_linux) +line=$(pgrep -u $SUDO_USER hl2_linux) arr=($line) inst=$1 if [ $# == 0 ]; then diff --git a/attach-libnamed.sh b/attach-libnamed.sh index 09f5aeec..b08632f9 100755 --- a/attach-libnamed.sh +++ b/attach-libnamed.sh @@ -4,7 +4,7 @@ # https://github.com/LWSS/Fuzion/commit/a53b6c634cde0ed47b08dd587ba40a3806adf3fe sudo ./scripts/auto-updater -line=$(pidof hl2_linux) +line=$(pgrep -u $SUDO_USER hl2_linux) arr=($line) inst=$1 if [ $# == 0 ]; then