Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
chinh4thepro authored Nov 16, 2024
1 parent d7f5a38 commit 50d33fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ case $KTREE in
mainline)
PATCHSUFFIX="patch"
# check if kernel has been downloaded this week, if not download/update it
if [ "$(date +'%V%y')" != "$(cat kern-dl-date-$ARCH 2>/dev/null)" -o $(cat ktree) != "mainline" ]; then
if [[ "$(date +'%V%y')" != "$(cat kern-dl-date-$ARCH 2>/dev/null)" || $(cat ktree) != "mainline" ]]; then
echo "Downloading kernel for $ARCH"
curl -L "$(curl -sL https://www.kernel.org/ | grep "Download complete tarball" | head -n1 | tr '"' ' ' | awk '{print $3}')" -o Linux-archive
rm -rf linux-$ARCH
Expand Down

0 comments on commit 50d33fd

Please sign in to comment.