Skip to content

Commit

Permalink
Fixed ~ expansion of ssh file check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlo committed Feb 8, 2024
1 parent 5dab32c commit cc8db99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def gen_slurm_script(args):
ssh_key = args.ssh_key or input(msg("input_ssh_key")) or ssh_key_default
# make sure the file exists
if ssh_key:
if not os.path.isfile(ssh_key):
if not os.path.isfile(os.path.expanduser(ssh_key)):
print(f"ERROR: file does not exists, {ssh_key}")
ssh_key = None

Expand Down

0 comments on commit cc8db99

Please sign in to comment.