From c057ae8c0090c21ac7aad0d6fb63d91f7c147873 Mon Sep 17 00:00:00 2001 From: ophub Date: Thu, 3 Feb 2022 16:29:15 +0800 Subject: [PATCH] Optimize rebuild scripts --- rebuild | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rebuild b/rebuild index b90206d62d..6423757a27 100755 --- a/rebuild +++ b/rebuild @@ -95,8 +95,7 @@ download_kernel() { for KERNEL_VAR in ${build_kernel[*]}; do if [ ! -d "${kernel_path}/${KERNEL_VAR}" ]; then echo -e "(${i}) [ ${KERNEL_VAR} ] Kernel loading from [ ${kernel_repo}/${KERNEL_VAR} ]" - svn checkout ${kernel_repo}/${KERNEL_VAR} ${kernel_path}/${KERNEL_VAR} >/dev/null - rm -rf ${kernel_path}/${KERNEL_VAR}/.svn >/dev/null && sync + svn export ${kernel_repo}/${KERNEL_VAR} ${kernel_path}/${KERNEL_VAR} --force else echo -e "(${i}) [ ${KERNEL_VAR} ] Kernel is in the local directory." fi