From 06b91679d381db7abd08e710b73f506f71fc110c Mon Sep 17 00:00:00 2001 From: David Baumgartner <dv@bmgr.me> Date: Tue, 15 Sep 2020 18:54:48 +0200 Subject: [PATCH] allow to watch paths with spaces with inotify (#66) --- lib/file_system/backends/fs_inotify.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file_system/backends/fs_inotify.ex b/lib/file_system/backends/fs_inotify.ex index 60e0a8e..366040c 100644 --- a/lib/file_system/backends/fs_inotify.ex +++ b/lib/file_system/backends/fs_inotify.ex @@ -101,7 +101,7 @@ defmodule FileSystem.Backends.FSInotify do case parse_options(rest) do {:ok, port_args} -> - bash_args = ['-c', '#{executable_path()} $0 $@ & PID=$!; read a; kill -KILL $PID'] + bash_args = ['-c', '#{executable_path()} "$0" "$@" & PID=$!; read a; kill -KILL $PID'] all_args = case :os.type() do -- GitLab