Revision 9811
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/sync.sh | ||
---|---|---|
11 | 11 |
echo_func; kw_params local_dir remote_url swap |
12 | 12 |
|
13 | 13 |
base_dir="$local_dir" cmd=canon_rel_path foreach_arg |
14 |
# also need to --include parent dirs for each --include path |
|
15 |
local a; for a in "$@"; do path_parents "$a"; args+=("${dirs[@]}"); done |
|
16 |
set -- "${args[@]}" |
|
17 |
|
|
14 | 18 |
set -- "${@/#/--include=/}" # prepend each with --include=/ |
15 | 19 |
src="$local_dir" dest="$remote_url" command put "$@" --exclude="**" |
16 | 20 |
} |
Also available in: Unified diff
bugfix: lib/sh/sync.sh: also need to --include parent dirs for each --include path