Skip to content

Commit

Permalink
Save RPMs to location
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Mittman <kmittman@nvidia.com>
  • Loading branch information
kmittman committed Apr 13, 2021
1 parent 3367522 commit 5615d94
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ distro="$2"
topdir="$HOME/dkms-nvidia"
epoch="3"

[[ -n $OUTPUT ]] ||
OUTPUT="$HOME/rpm-nvidia"

[[ -n $distro ]] ||
distro=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
[[ $distro == "main" ]] && distro="rhel8"
Expand Down Expand Up @@ -119,4 +122,9 @@ else
fi

echo "---"
find "$topdir/RPMS" -mindepth 2 -maxdepth 2 -type f -name "*${version}*"
found=$(find "$topdir/RPMS" -mindepth 2 -maxdepth 2 -type f -name "*${version}*" 2>/dev/null)
for rpm in $found; do
echo "-> $(basename "$rpm")"
mkdir -p "$OUTPUT"
rsync -a "$rpm" "$OUTPUT"
done

0 comments on commit 5615d94

Please sign in to comment.