From 53fc318643535d984a46f080f798148a3c6ce158 Mon Sep 17 00:00:00 2001
From: falood <falood@gmail.com>
Date: Tue, 29 Aug 2017 23:02:43 -0700
Subject: [PATCH] make code clear

---
 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 9d4d9a4..8232e0d 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!()}]
-- 
GitLab