2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Have later syncfiles entries supersede earlier

This allows a vague entry to
be followed by a specific
entry to allow 'common' content
and then a specific override.
This commit is contained in:
Jarrod Johnson 2022-01-13 16:52:10 -05:00
parent aa816c0f1d
commit 8d5d8ef5ed

View File

@ -243,6 +243,8 @@ def mkpathorlink(source, destination, appendexist=False):
realdest.write(sourcedata.read())
os.remove(tmpnam)
else:
if os.path.islink(destination):
os.remove(destination)
os.symlink(source, destination)