mirror of
https://github.com/dynup/kpatch
synced 2025-05-03 16:37:56 +00:00
fix review comments
Use the wget -P option.
This commit is contained in:
parent
74316588e8
commit
d254d3d0f2
@ -316,7 +316,7 @@ else
|
||||
echo "Downloading kernel source for $ARCHVERSION"
|
||||
if [[ -z "$SRCRPM" ]]; then
|
||||
if [[ $DISTRO = fedora ]]; then
|
||||
(cd $TEMPDIR && wget http://kojipkgs.fedoraproject.org/packages/kernel/$KVER/$KREL/src/kernel-$KVER-$KREL.src.rpm >> "$LOGFILE" 2>&1 || die)
|
||||
wget -P $TEMPDIR http://kojipkgs.fedoraproject.org/packages/kernel/$KVER/$KREL/src/kernel-$KVER-$KREL.src.rpm >> "$LOGFILE" 2>&1 || die
|
||||
else
|
||||
rpm -q --quiet yum-utils || die "yum-utils not installed"
|
||||
yumdownloader --source --destdir "$TEMPDIR" "kernel-$ARCHVERSION" >> "$LOGFILE" 2>&1 || die
|
||||
|
Loading…
Reference in New Issue
Block a user