mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
fix origin-updated path
This commit is contained in:
parent
7416e8c80f
commit
0a68892774
1 changed files with 6 additions and 2 deletions
|
|
@ -399,12 +399,16 @@ class HarpBlog
|
||||||
run("git push")
|
run("git push")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def origin_updated_path
|
||||||
|
File.join @path, 'origin-updated'
|
||||||
|
end
|
||||||
|
|
||||||
def git_update(remote = 'origin')
|
def git_update(remote = 'origin')
|
||||||
run("git update #{remote} && rm origin-updated")
|
run "git update #{remote} && rm #{origin_updated_path}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def origin_updated?
|
def origin_updated?
|
||||||
File.exist?('origin-updated')
|
File.exist? origin_updated_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_if_needed
|
def update_if_needed
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue