fix something
This commit is contained in:
2
run.sh
2
run.sh
@@ -23,7 +23,7 @@ fi
|
|||||||
APPID=$(echo $RESPONSE | jq -r '.response.players[0].gameid')
|
APPID=$(echo $RESPONSE | jq -r '.response.players[0].gameid')
|
||||||
|
|
||||||
if [ "$APPID" != "null" ] && [ -n "$APPID" ]; then
|
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
|
# If not playing on CURRENT DEVICE but DETECTED PLAYING ON ACCOUNT
|
||||||
echo "[automate steam] detected playing: $APPID ON OTHER DEVICE. quitting"
|
echo "[automate steam] detected playing: $APPID ON OTHER DEVICE. quitting"
|
||||||
steam steam://exit &
|
steam steam://exit &
|
||||||
|
|||||||
Reference in New Issue
Block a user