Fixed checking /lib/sshyp instead of /usr/lib/sshyp

Former-commit-id: fc0ea87c0c15077897a5cbee7fc38b22f8022c70
Former-commit-id: e2abdc03fc4b3fa8c62f4c08164d36e83647a645
This commit is contained in:
2023-06-08 19:36:20 -04:00
parent 2322140af7
commit 6c2d51aea6
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -69,7 +69,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: