Add do_link helper
This commit is contained in:
parent
737d5432f9
commit
bd44a20c60
|
@ -12,3 +12,9 @@ def sh_safe(cmd)
|
|||
return false
|
||||
end
|
||||
end
|
||||
|
||||
def do_link(src, dest)
|
||||
if not (File.exist?(path_to_file) || File.symlink?(path_to_file))
|
||||
sh_safe "ln -sf #{src} #{dest}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue