Skip to content

Commit

Permalink
fix: Hyphens are now allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicoblanco authored Nov 25, 2024
1 parent d1ba11a commit 9841a87
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 9841a87

Please sign in to comment.