diff --git a/lib/file_system/backends/fs_inotify.ex b/lib/file_system/backends/fs_inotify.ex index 9d4d9a485a1db42fd6f63b03cb848edda0a58dbc..8232e0d9eb994014b312604144c7db4c41dfa6cd 100644 --- a/lib/file_system/backends/fs_inotify.ex +++ b/lib/file_system/backends/fs_inotify.ex @@ -106,7 +106,7 @@ defmodule FileSystem.Backends.FSInotify do {worker_pid, rest} = Keyword.pop(args, :worker_pid) case parse_options(rest) do {:ok, port_args} -> - bash_args = ['-c', to_charlist(executable_path()) ++ ' $0 $@ & PID=$!; read a; kill $PID'] + bash_args = ['-c', '#{executable_path()} $0 $@ & PID=$!; read a; kill $PID'] port = Port.open( {:spawn_executable, '/bin/sh'}, [:stream, :exit_status, {:line, 16384}, {:args, bash_args ++ port_args}, {:cd, System.tmp_dir!()}]