This commit is contained in:
2018-10-28 01:45:24 +04:00
parent f3c8c75edd
commit ef2f15f9d8

View File

@@ -63,7 +63,7 @@ function mount_sshfs {
-o Compression=yes \
-o reconnect \
-o workaround=rename \
"$DESTINATION:$REMOTE_MOUNT_PATH" "$LOCAL_MOUNT_PATH"
"$DESTINATION:/" "$LOCAL_MOUNT_PATH"
# if [[ ! -e "$LOCAL_COMMAND_PIPE_PATH" ]]; then
# echo "Can't find the command pipe"
@@ -72,8 +72,7 @@ function mount_sshfs {
echo "Starting remote command pipe..."
ssh $DESTINATION \
<< EOF
ssh $DESTINATION "
set -euxo pipefail
if [[ -e /tmp/sshfs_command_pipe ]]; then
@@ -82,8 +81,8 @@ function mount_sshfs {
mkfifo /tmp/sshfs_command_pipe
tail -f /tmp/sshfs_command_pipe | zsh -lx
EOF
tail -f /tmp/sshfs_command_pipe
" | zsh -x
}
function sublr {