summaryrefslogtreecommitdiff
path: root/.local/bin/pashare
diff options
context:
space:
mode:
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 () {