X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=backup.sh;h=a1a0f1a1dacebbeb3a337b6be30c13d03e19ce4f;hb=75f1fade4434092cf1596041f3dd762b034d34b8;hp=5cd15a2fb2f41a176ef6ae063848de4b91149377;hpb=efa2f1b2e93a066812515e302bb197677db74f48;p=scripts%2Fscripts.git diff --git a/backup.sh b/backup.sh index 5cd15a2..a1a0f1a 100755 --- a/backup.sh +++ b/backup.sh @@ -77,9 +77,9 @@ echo "config stuff:" mkdir ./${host}-conf && cd ./${host}-conf for i in $kernel_num; do - if [ -f /usr/src/linux-${i}*/.config ] ; then + if [ -f /usr/src/linux-${i}/.config ] ; then echo "copying /usr/src/linux/.config" - cp /usr/src/linux-${i}*/.config ./$host-kernel-${i}-config + cp /usr/src/linux-${i}/.config ./$host-kernel-${i}-config fi done @@ -147,7 +147,7 @@ if [ "$host" = "right-hand" ] ; then for i in www cvs hdw; do if [ -d /chroot/$i ] ; then echo "copying /chroot/$i" - tar .cf ./chroot/$i.tar /chroot/$i + tar -cf ./chroot/$i.tar /chroot/$i fi done fi