diff --git a/run.sh b/run.sh index 9fa87b4..f8e9a44 100644 --- a/run.sh +++ b/run.sh @@ -23,7 +23,7 @@ fi APPID=$(echo $RESPONSE | jq -r '.response.players[0].gameid') if [ "$APPID" != "null" ] && [ -n "$APPID" ]; then - if ! pgrep -fa "AppId=$APPID" > /dev/null; then + if pgrep -f steam > /dev/null && ! pgrep -fa "AppId=$APPID" > /dev/null; then # If not playing on CURRENT DEVICE but DETECTED PLAYING ON ACCOUNT echo "[automate steam] detected playing: $APPID ON OTHER DEVICE. quitting" steam steam://exit &