Skip to content

Commit 611647b

Browse files
pvizelifrenck
andauthored
Fix bash regex style (#52)
* Fix bash regex style * Update rootfs/etc/cont-init.d/pulse-config.sh Co-authored-by: Franck Nijhof <git@frenck.dev> * Update pulse-config.sh Co-authored-by: Franck Nijhof <git@frenck.dev>
1 parent 4757ca2 commit 611647b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/etc/cont-init.d/pulse-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare tsched
66
readonly ALSA_CARDS="$(aplay -l)"
77

88
# RaspberryPi
9-
if echo "${ALSA_CARDS}" | grep -q "\[bcm2835 .*\]"; then
9+
if [[ "${ALSA_CARDS}" =~ \[bcm2835.*?\] ]]; then
1010
bashio::log.info "Found RaspberryPi system"
1111
tsched=false
1212
else

0 commit comments

Comments
 (0)