projects
/
scripts
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68ebce6
)
more save kern num parsing
author
hackbard
<hackbard>
Sat, 1 Feb 2003 21:10:51 +0000
(21:10 +0000)
committer
hackbard
<hackbard>
Sat, 1 Feb 2003 21:10:51 +0000
(21:10 +0000)
backup.sh
patch
|
blob
|
history
diff --git
a/backup.sh
b/backup.sh
index
256b1d9
..
d40470d
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
- kernel_num=`ls /usr/src/ | grep '
linux-' | awk -F- '{ print $2 }
'`
+ kernel_num=`ls /usr/src/ | grep '
^linux-' | sed 's/linux-//g
'`
fi