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