fix mac
This commit is contained in:
@@ -18,6 +18,16 @@ sync_file() {
|
||||
remote_path="$2"
|
||||
remote_cmd="${3-}"
|
||||
|
||||
# If caller passes a local absolute path, mirror it under remote $HOME.
|
||||
case "$remote_path" in
|
||||
"$HOME")
|
||||
remote_path="~"
|
||||
;;
|
||||
"$HOME"/*)
|
||||
remote_path="~/${remote_path#"$HOME"/}"
|
||||
;;
|
||||
esac
|
||||
|
||||
remote_dir="$(dirname "$remote_path")"
|
||||
remote_tmp="${remote_path}.tmp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user