Skip to content

Commit

Permalink
Merge pull request #53 from domenicoblanco/main
Browse files Browse the repository at this point in the history
Hyphens are now allowed in the TV name
  • Loading branch information
Georift authored Nov 29, 2024
2 parents d1ba11a + 9841a87 commit f5970f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ echo "Attempting to connect to Samsung TV at IP address $TV_IP"
sdb connect $1

echo "Attempting to get the TV name..."
TV_NAME=$(sdb devices | grep -E 'device\s+\w+' -o | sed 's/device//' - | xargs)
TV_NAME=$(sdb devices | grep -E 'device\s+\w+[-]?\w+' -o | sed 's/device//' - | xargs)

if [ -z "$TV_NAME" ]; then
echo "We were unable to find the TV name.";
Expand Down

0 comments on commit f5970f7

Please sign in to comment.