diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2002-03-20 11:22:19 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2002-03-20 11:22:19 +0000 |
commit | d90364be974b884e0291095a2d2cb14563e0a32d (patch) | |
tree | 2b6554f86920da50de5e4380c81066a1af63a98b /update_kernel | |
parent | 277621a72485888b6920f22d2bbb2050f64ef55f (diff) | |
download | drakx-backup-do-not-use-d90364be974b884e0291095a2d2cb14563e0a32d.tar drakx-backup-do-not-use-d90364be974b884e0291095a2d2cb14563e0a32d.tar.gz drakx-backup-do-not-use-d90364be974b884e0291095a2d2cb14563e0a32d.tar.bz2 drakx-backup-do-not-use-d90364be974b884e0291095a2d2cb14563e0a32d.tar.xz drakx-backup-do-not-use-d90364be974b884e0291095a2d2cb14563e0a32d.zip |
don't remove all the kernels if all.kernels/.main is non existent
Diffstat (limited to 'update_kernel')
-rwxr-xr-x | update_kernel | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_kernel b/update_kernel index 2f93315dc..3dc9e819a 100755 --- a/update_kernel +++ b/update_kernel @@ -49,7 +49,7 @@ function create_modules() { rpm=$(rpm -qp --qf '%{name}' /RPMS/kernel-BOOT-*.rpm | perl -pe 's/kernel-BOOT-(.*)\.(.*)/$1-${2}BOOT/') if [ -n "$rpm" -a ! -e $ALL_KERNELS/$rpm ]; then - rm -rf $ALL_KERNELS/$main + [ -n "$main" ] && rm -rf $ALL_KERNELS/$main cd $ALL_KERNELS rm -rf $rpm ; mkdir $rpm cd $rpm |