|
|
@@ -39,11 +39,11 @@ return function(opts)
|
|
|
local handle = io.popen("pwd")
|
|
|
local pwd = handle:read("a*")
|
|
|
handle:close()
|
|
|
- os.execute("cd " .. os.getenv("HOME") .. "/.config/cspell/cspell.json")
|
|
|
+ os.execute("cd " .. os.getenv("HOME") .. "/.config/cspell/")
|
|
|
os.execute("git add .")
|
|
|
|
|
|
os.execute("git commit -m 'word added'")
|
|
|
- os.execute("git push -u origin master")
|
|
|
+ os.execute("git push")
|
|
|
os.execute("cd "..pwd)
|
|
|
if on_success then
|
|
|
on_success(cspell.path, opts.params, "add_to_json")
|