Last active
April 30, 2022 18:01
-
-
Save sisimomo/22060ec49d3358fc9e7c9d796bc8720e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
STATE=$(sudo tvservice --status) | |
if [[ $STATE == *"0x12000a"* ]]; then | |
echo "true" | |
else | |
echo "false" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment