mirror of
https://github.com/netinvent/npbackup.git
synced 2024-09-21 07:16:16 +08:00
Return most recent restic dev binary
This commit is contained in:
parent
4877cd4e86
commit
07f2972520
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue