mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 20:47:00 +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
|
||||
FLAGS_portage="${FLAGS_rsync}"
|
||||
fi
|
||||
mkdir -p "$pkg"
|
||||
rsync $RSYNC_OPTS -v --exclude CVS "$FLAGS_portage/$pkg/" "$pkg"
|
||||
if [[ "$pkg" =~ "eclass/"* ]]; then
|
||||
slash=
|
||||
else
|
||||
slash="/"
|
||||
mkdir -p "$pkg"
|
||||
fi
|
||||
rsync $RSYNC_OPTS -v --exclude CVS "$FLAGS_portage/$pkg${slash}" "$pkg"
|
||||
fi
|
||||
|
||||
# Make sure we don't change the repo name to 'gentoo'
|
||||
|
Loading…
Reference in New Issue
Block a user