Project

General

Profile

« Previous | Next » 

Revision 10144

bugfix: lib/sh/sync.sh: upload(): paths: don't dereference the path itself if it's a symlink; instead canonicalize just its parent dir. this allows syncing a specific file which is a symlink, rather than syncing the symlink's target.

View differences:

sync.sh
27 27
		if starts_with -- "$a"; then args+=("$a") # option, so leave as is
28 28
		else # path
29 29
			# also need to --include parent dirs for each --include path
30
			path_parents "$(base_dir="$local_dir" canon_rel_path "$a")"
30
			path_parents "$(base_dir="$local_dir" canon_dir_rel_path "$a")"
31 31
			args+=("${dirs[@]/#/--include=/}") # prepend each with --include=/
32 32
			has_includes=1
33 33
		fi

Also available in: Unified diff