Remove redundant check
This commit is contained in:
@@ -69,15 +69,6 @@ def run_mount(args: argparse.Namespace) -> int:
|
||||
return 1
|
||||
archive_spec = f'{repo}::{archive_name}'
|
||||
|
||||
# Check mountpoint
|
||||
mountpoint = args.mountpoint
|
||||
if not os.path.isdir(mountpoint):
|
||||
print(
|
||||
f"Mountpoint '{mountpoint}' does not exist or is not a directory.",
|
||||
file=sys.stderr,
|
||||
)
|
||||
return 1
|
||||
|
||||
# Run borg mount
|
||||
cmd = ['borg', 'mount', archive_spec, mountpoint]
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user