]> hackdaworld.org Git - scripts/scripts.git/commitdiff
more save kern num parsing
authorhackbard <hackbard>
Sat, 1 Feb 2003 21:10:51 +0000 (21:10 +0000)
committerhackbard <hackbard>
Sat, 1 Feb 2003 21:10:51 +0000 (21:10 +0000)
backup.sh

index 256b1d9debc0b0546c3a14f958fb1923601fdf0c..d40470d63549cc6e73b661d047b0f3ab1702de8d 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -37,7 +37,7 @@ fi
 
 # set kernel version(s) to store their .config
 if [ -d /usr/src/linux ] ; then
 
 # set kernel version(s) to store their .config
 if [ -d /usr/src/linux ] ; then
-       kernel_num=`ls /usr/src/ | grep 'linux-' | awk -F- '{ print $2 }'`
+       kernel_num=`ls /usr/src/ | grep '^linux-' | sed 's/linux-//g'`
 fi
 
 
 fi