Skip to content

Commit

Permalink
Backport /lib/sshyp fix
Browse files Browse the repository at this point in the history
Former-commit-id: 21f1705
Former-commit-id: 56ccd20
  • Loading branch information
rwinkhart committed Jun 8, 2023
1 parent c48722f commit 5cd50c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sshync.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_local_data(_directory, _device):
def remote_list_fetch(_user_data):
try:
_remote_data = run(['ssh', '-i', _user_data[5], '-p', _user_data[2], f"{_user_data[0]}@{_user_data[1]}",
f'cd /lib/sshyp; python3 -c \'from sshync import remote_list_gen; remote_list_gen'
f'cd /usr/lib/sshyp; python3 -c \'from sshync import remote_list_gen; remote_list_gen'
f'("{_user_data[6]}", "{_user_data[4]}")\''], stdout=PIPE, text=True, check=True
).stdout.split('\x1d')
except CalledProcessError:
Expand Down
4 changes: 2 additions & 2 deletions lib/sshyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ def rename():
_folder_disabler = True
if not ssh_error and not _folder_disabler:
run(['ssh', '-i', f"{home}/.ssh/sshyp", '-p', port, f"{username_ssh}@{ip}",
f'cd /lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely")\''])
f'cd /usr/lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely")\''])


# edits the contents of an entry
Expand Down Expand Up @@ -772,7 +772,7 @@ def remove_data():
determine_decrypt(f"{home}/.config/sshyp/lock.gpg", None, None)
if not ssh_error:
run(['ssh', '-i', f"{home}/.ssh/sshyp", '-p', port, f"{username_ssh}@{ip}",
f'cd /lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely")\''])
f'cd /usr/lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely")\''])
else:
offline_delete(entry_name, 'locally')

Expand Down
1 change: 1 addition & 0 deletions share/doc/sshyp/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ fixes:
for the time being
- backported fix for syncing over IPv6
- backported fix for multiple versions of Powershell being called under WSL
- backported fix for checking /lib/sshyp instead of /usr/lib/sshyp

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

Expand Down

0 comments on commit 5cd50c7

Please sign in to comment.