From 4330617060c0d8d26bc56ca9490f29efd45b4818 Mon Sep 17 00:00:00 2001 From: Cuan Date: Thu, 13 Jan 2022 04:36:58 -0500 Subject: [PATCH] Partial revert for last fix --- bin/sshync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/sshync.py b/bin/sshync.py index e1faece..87b7b99 100755 --- a/bin/sshync.py +++ b/bin/sshync.py @@ -75,7 +75,8 @@ def get_profile(_profile_dir): _local_dir = _profile_data[3].replace('\n', '') _remote_dir = _profile_data[4].replace('\n', '') _identity = _profile_data[5].replace('\n', '') - return _user, _ip, _port, _local_dir, _remote_dir, _identity + _data_dir = ' '.join(_profile_dir.split('/')[:-1]).replace(' ', '/') + '/' + return _user, _ip, _port, _local_dir, _remote_dir, _identity, _data_dir def run_profile(_profile_dir):