mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 04:56:58 +02:00
update_ebuilds: Fix support for rsync of eclass
For eclasses we need to skip the mkdir and trailing slash. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
1bb108e326
commit
601adeb434
@ -57,8 +57,13 @@ for pkg in "$@"; do
|
|||||||
if [[ "$FLAGS_portage" == rsync ]]; then
|
if [[ "$FLAGS_portage" == rsync ]]; then
|
||||||
FLAGS_portage="${FLAGS_rsync}"
|
FLAGS_portage="${FLAGS_rsync}"
|
||||||
fi
|
fi
|
||||||
mkdir -p "$pkg"
|
if [[ "$pkg" =~ "eclass/"* ]]; then
|
||||||
rsync $RSYNC_OPTS -v --exclude CVS "$FLAGS_portage/$pkg/" "$pkg"
|
slash=
|
||||||
|
else
|
||||||
|
slash="/"
|
||||||
|
mkdir -p "$pkg"
|
||||||
|
fi
|
||||||
|
rsync $RSYNC_OPTS -v --exclude CVS "$FLAGS_portage/$pkg${slash}" "$pkg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure we don't change the repo name to 'gentoo'
|
# Make sure we don't change the repo name to 'gentoo'
|
||||||
|
Loading…
Reference in New Issue
Block a user