From: Holger Levsen Date: Fri, 14 Dec 2012 09:47:54 +0000 (+0100) Subject: fixup: fix KERNEL_VERSION parsing X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=0c414d027b6de630313788c34c044cfb4982d5c3;p=profitbricks%2Fjenkins-build-scripts.git fixup: fix KERNEL_VERSION parsing --- diff --git a/extract_storage_kernel+modules.sh b/extract_storage_kernel+modules.sh index 0f2771f..3bdf893 100755 --- a/extract_storage_kernel+modules.sh +++ b/extract_storage_kernel+modules.sh @@ -41,18 +41,18 @@ export KERNEL_VERSION=###(ls /boot/vmlinu* | cut -d "-" -f2-) cp -v /boot/vmlinu* $TARGET_DIR/ cp -v /boot/config* $TARGET_DIR/ cd /lib/modules/*storage/ -/bin/tar -cJvf $TARGET_DIR/modules-${KERNEL_VERSION}.tar.xz . +/bin/tar -cJvf $TARGET_DIR/modules-###{KERNEL_VERSION}.tar.xz . echo "Job : $JOB_NAME" > $TARGET_DIR/sources.txt echo "Build-Nr.: $BUILD_NUMBER" >> $TARGET_DIR/sources.txt echo "URL : http://jenkins/job/$JOB_NAME/$BUILD_NUMBER/" >> $TARGET_DIR/sources.txt -echo "Kernel: : $KERNEL_VERSION" >> $TARGET_DIR/sources.txt +echo "Kernel: : ###KERNEL_VERSION" >> $TARGET_DIR/sources.txt echo >> $TARGET_DIR/sources.txt apt-cache show profitbricks-linux-image-storage >> $TARGET_DIR/sources.txt apt-cache show profitbricks-andbd-modules-storage >> $TARGET_DIR/sources.txt EOF chmod +x $BUILD_SCRIPT # turn the shell call back into a shell call -sed -i -s "s|###|$|" $BUILD_SCRIPT +sed -i -s "s|###|$|g" $BUILD_SCRIPT # # build liveboot