mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 22:15:43 +08:00
Fixup Fix empty tags created a bogus restic command line
This commit is contained in:
parent
e1e5a9c93f
commit
924fca23dd
1 changed files with 3 additions and 3 deletions
|
@ -7,8 +7,8 @@ __intname__ = "npbackup.restic_wrapper"
|
|||
__author__ = "Orsiris de Jong"
|
||||
__copyright__ = "Copyright (C) 2022-2023 NetInvent"
|
||||
__license__ = "GPL-3.0-only"
|
||||
__build__ = "2023012701"
|
||||
__version__ = "1.5.0"
|
||||
__build__ = "2023030701"
|
||||
__version__ = "1.5.1"
|
||||
|
||||
|
||||
from typing import Tuple, List, Optional, Callable, Union
|
||||
|
@ -522,8 +522,8 @@ class ResticRunner:
|
|||
"Parameter --use-fs-snapshot was given, which is only compatible with Windows"
|
||||
)
|
||||
for tag in tags:
|
||||
tag = tag.strip()
|
||||
if tag:
|
||||
tag = tag.strip()
|
||||
cmd += " --tag {}".format(tag)
|
||||
if additional_parameters:
|
||||
cmd += " {}".format(additional_parameters)
|
||||
|
|
Loading…
Reference in a new issue