testing: Fix kernel download URL for kernel versions != 4.x
authorTobias Brunner <tobias@strongswan.org>
Tue, 19 May 2015 14:59:35 +0000 (16:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 May 2015 15:00:06 +0000 (17:00 +0200)
testing/scripts/build-guestkernel

index b408d73..17f22bd 100755 (executable)
@@ -14,7 +14,7 @@ cd $BUILDDIR
 
 if [ ! -f "$KERNELTARBALL" ]
 then
-       url=ftp://ftp.kernel.org/pub/linux/kernel/v4.x/$KERNELTARBALL
+       url=ftp://ftp.kernel.org/pub/linux/kernel/v${KERNELVERSION:0:1}.x/$KERNELTARBALL
        log_action "Downloading $url"
        execute "wget -q $url"
 fi