summaryrefslogtreecommitdiff
path: root/.local/bin/pashare
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-11-08 16:29:27 +0100
committeradam <56338480+adastx@users.noreply.github.com>2022-11-08 16:29:27 +0100
commitf734b5a441a15ef55c7d28f0007f0cca36a57191 (patch)
treed23662c8dddf556478acf130dfe538754577750f /.local/bin/pashare
parent388eb084f0187ac9dc135a52f4cdfe78f984ba34 (diff)
scripts: minor cleanup
Diffstat (limited to '.local/bin/pashare')
-rwxr-xr-x.local/bin/pashare5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/pashare b/.local/bin/pashare
index 0e6d885..8ce0170 100755
--- a/.local/bin/pashare
+++ b/.local/bin/pashare
@@ -17,7 +17,7 @@ main () {
start () {
stop >/dev/null 2>&1
- DEST=$(cat $XDG_CONFIG_HOME/pashare/dest)
+ DEST=$(cat "$XDG_CONFIG_HOME/pashare/dest")
pactl load-module module-null-sink \
sink_name=rtp \
@@ -26,7 +26,8 @@ start () {
channels=2 \
rate=48000 >/dev/null
- pactl load-module module-rtp-send source=rtp.monitor destination=$DEST port=4010 mtu=320 >/dev/null
+ pactl load-module module-rtp-send source=rtp.monitor destination="$DEST" \
+ port=4010 mtu=320 >/dev/null
}
stop () {