fix something

This commit is contained in:
2026-02-11 13:32:09 +00:00
parent c20ea8eb7d
commit 7f9d00c883

2
run.sh
View File

@@ -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 &