ditto
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user