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