]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fixup: fix KERNEL_VERSION parsing
authorHolger Levsen <holger@layer-acht.org>
Fri, 14 Dec 2012 09:47:54 +0000 (10:47 +0100)
committerHolger Levsen <holger@layer-acht.org>
Fri, 14 Dec 2012 09:47:54 +0000 (10:47 +0100)
extract_storage_kernel+modules.sh

index 0f2771f1bafe37700b11f3d95f0f1bd9864b0c16..3bdf8932b0cc8f40cc1e0e8b82476274e7e86b07 100755 (executable)
@@ -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