bug
This commit is contained in:
parent
16a11c047f
commit
4e11b0f80f
|
@ -1 +1 @@
|
||||||
31
|
32
|
||||||
|
|
|
@ -1446,10 +1446,10 @@ function cpnovcs() {
|
||||||
[ -d "$destdir" ] || mkdir -p "$destdir" || return 1
|
[ -d "$destdir" ] || mkdir -p "$destdir" || return 1
|
||||||
if progexists rsync; then
|
if progexists rsync; then
|
||||||
local gitexclude=/.git/
|
local gitexclude=/.git/
|
||||||
if [ "${src%/}" != "$src" ]; then
|
if [ "${src%/}" == "$src" ]; then
|
||||||
gitexclude="/$(basename -- "$src")$gitexclude"
|
gitexclude="/$(basename -- "$src")$gitexclude"
|
||||||
fi
|
fi
|
||||||
rsync -a ${__CPNOVCS_RSYNC_SLOW:+-c} --exclude CVS --exclude .svn --exclude "$gitexclude" "${__CPNOVCS_RSYNC_ARGS[@]}" "$src" "$destdir/"
|
rsync -a ${__CPNOVCS_RSYNC_SLOW:+-c} --exclude CVS/ --exclude .svn/ --exclude "$gitexclude" "${__CPNOVCS_RSYNC_ARGS[@]}" "$src" "$destdir/"
|
||||||
elif [ "${src%/}" != "$src" ]; then
|
elif [ "${src%/}" != "$src" ]; then
|
||||||
__cpdir "$src" "$destdir"
|
__cpdir "$src" "$destdir"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue