projects
/
scripts
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more save kern num parsing
[scripts/scripts.git]
/
backup.sh
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