commit a8384676a36204b3994c0cf66e455bc29d8b489c
parent 584eae843c426eb5a56d9b6a7014e49023f8559d
Author: hhvn <dev@hhvn.uk>
Date: Tue, 13 Jul 2021 18:34:11 +0100
.s/b/plumb: properly escape $arg
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.scripts/bin/plumb b/.scripts/bin/plumb
@@ -105,7 +105,7 @@ do
export proxy="torsocks"
matches "^magnet:" &&
- plumb terminal 'addtorrent $arg'
+ plumb terminal 'addtorrent "$arg"'
matches "^(gopher|http)s?://.*\.(mkv|mp4|avi|webm|ogg|ogv|gifv|mp3|mp4|opus|flac|ape|m3u|m3u8)$" ||
matches "^https?://(www\.|m\.)?(youtube.com|youtu.be)" &&