mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-16 16:37:56 +08:00
Return most recent restic dev binary
This commit is contained in:
parent
4877cd4e86
commit
07f2972520
1 changed files with 3 additions and 1 deletions
|
@ -44,5 +44,7 @@ def get_restic_internal_binary(arch: str) -> str:
|
||||||
if binary:
|
if binary:
|
||||||
guessed_path = glob.glob(os.path.join(RESTIC_SOURCE_FILES_DIR, binary))
|
guessed_path = glob.glob(os.path.join(RESTIC_SOURCE_FILES_DIR, binary))
|
||||||
if guessed_path:
|
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
|
return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue