8
sync.py
8
sync.py
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
Dotfiles syncronization.
|
||||
@@ -47,15 +47,15 @@ def main():
|
||||
if is_link_to(dotfile, source):
|
||||
continue
|
||||
|
||||
response = raw_input("Overwrite file `%s'? [y/N] " % dotfile)
|
||||
response = input("Overwrite file `%s'? [y/N] " % dotfile)
|
||||
if not response.lower().startswith('y'):
|
||||
print "Skipping `%s'..." % dotfile
|
||||
print("Skipping `%s'..." % dotfile)
|
||||
continue
|
||||
|
||||
force_remove(dotfile)
|
||||
|
||||
os.symlink(source, dotfile)
|
||||
print "%s => %s" % (dotfile, source)
|
||||
print("%s => %s" % (dotfile, source))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user