Skip to content

Commit 97c52e9

Browse files
committed
Fix cp command to only copy RPM files, not directories
1 parent 4023a47 commit 97c52e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/download_packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ if [ "$GOT_RPM" = "1" ]; then
386386
if [ -d "$RHEL8_POOL" ] && [ "$(find "$RHEL8_POOL" -name "*.rpm" -type f | wc -l)" -gt 0 ]; then
387387
echo "Creating main YUM repository"
388388
mkdir -p "$MAIN_POOL"
389-
cp "$RHEL8_POOL"/* "$MAIN_POOL"/
389+
cp "$RHEL8_POOL"/*.rpm "$MAIN_POOL"/ 2>/dev/null || true
390390
pushd "$MAIN_POOL" >/dev/null
391391
echo "Running createrepo_c for main repository in $(pwd)"
392392
if createrepo_c .; then

0 commit comments

Comments
 (0)