diff options
author | Richard Maw <richard.maw@gmail.com> | 2013-11-06 22:55:06 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2013-11-06 22:55:06 +0000 |
commit | ba61e4d81d6113a19a62726619713bb491e21a56 (patch) | |
tree | b07ae1f8036d5b9882216cb412ef4259913531f2 | |
parent | 8adc9cb0b220b25692c1bce1733a7383fef062fd (diff) | |
download | tar-clone-ba61e4d81d6113a19a62726619713bb491e21a56.tar.bz2 |
Convert some variables to local
-rwxr-xr-x | tar-clone.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tar-clone.lua b/tar-clone.lua index 9bd1687..a5fc692 100755 --- a/tar-clone.lua +++ b/tar-clone.lua @@ -129,9 +129,9 @@ local function write_file(writer, path, data) end local function run_git(dir, ...) - proc = sp.spawn_simple{cwd=dir, stdout=sp.PIPE, ...} - output = proc.stdout:read("*a") - how, why = proc:wait() + local proc = sp.spawn_simple{cwd=dir, stdout=sp.PIPE, ...} + local output = proc.stdout:read("*a") + local how, why = proc:wait() if how == -1 then error("run_git failed: "..tostring(why)) end |