adding *better* filtering
This commit is contained in:
4
main.py
4
main.py
@@ -61,7 +61,9 @@ def read_config_file(filepath: str = "configuration.ini"):
|
||||
arguments.repository = parser["restic"]["repository"]
|
||||
arguments.passwordfile = parser["restic"]["passwordfile"]
|
||||
if "dryrun" in parser["restic"]:
|
||||
arguments.dryrun = (parser["restic"]["dryrun"].lower() == "true" or parser["restic"]["dryrun"] > 0)
|
||||
if parser["restic"]["dryrun"].lower() == "true" \
|
||||
or (parser["restic"]["dryrun"].isdigit() and parser["restic"]["dryrun"] > 0):
|
||||
arguments.dryrun = ()
|
||||
else:
|
||||
arguments.dryrun = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user