mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Change audio clips from addon options https://github.com/alexbelgium/hassio-addons/issues/1457
This commit is contained in:
@@ -34,7 +34,7 @@ done
|
||||
|
||||
# If default capture is set at 0%, increase it to 50%
|
||||
current_volume="$(amixer sget Capture | grep -oP '\[\d+%]' | tr -d '[]%' | head -1)" 2>/dev/null || true
|
||||
current_volume="{current_volume:-100}"
|
||||
current_volume="${current_volume:-100}"
|
||||
|
||||
# Set the default microphone volume to 50% if it's currently at 0%
|
||||
if [[ "$current_volume" -eq 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user