Return most recent restic dev binary

This commit is contained in:
Orsiris de Jong 2024-01-15 16:37:34 +01:00
parent 4877cd4e86
commit 07f2972520

View file

@ -44,5 +44,7 @@ def get_restic_internal_binary(arch: str) -> str:
if binary:
guessed_path = glob.glob(os.path.join(RESTIC_SOURCE_FILES_DIR, binary))
if guessed_path:
return guessed_path[0]
# Take glob results reversed so we get newer version
# Does not always compute, but is g00denough(TM) for our dev
return guessed_path[-1]
return None