From f293453d9b0b1d1e090bc294966b358d8273facf Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 7 Feb 2021 16:10:07 +0100 Subject: pulse2jack: Cleanup bin/pulse2jack: Clean up script and disable unnecessary shell options. --- bin/pulse2jack | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'bin/pulse2jack') diff --git a/bin/pulse2jack b/bin/pulse2jack index b7ab947..d5aa2ef 100755 --- a/bin/pulse2jack +++ b/bin/pulse2jack @@ -1,11 +1,8 @@ #!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' +set -eu - -function jack_module_on() -{ +jack_module_on() { echo "Enabling JACK sink and source." /usr/bin/pacmd load-module module-jack-sink channels=2 /usr/bin/pacmd load-module module-jack-source channels=2 @@ -13,8 +10,7 @@ function jack_module_on() /usr/bin/pacmd set-default-source jack_in } -function jack_module_off() -{ +jack_module_off() { echo "Disabling JACK sink and source." /usr/bin/pacmd unload-module module-jack-sink /usr/bin/pacmd unload-module module-jack-source @@ -28,5 +24,3 @@ case "$@" in jack_module_off ;; esac - -exit 0 -- cgit v1.2.3-70-g09d2