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