From 18d0692e3edbb68cc9e31b305c0157f8c428af27 Mon Sep 17 00:00:00 2001 From: timerix Date: Mon, 16 Jan 2023 02:39:22 +0600 Subject: [PATCH] clear_dir $OBJDIR --- call_task.sh | 1 + functions.sh | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/call_task.sh b/call_task.sh index 330ae0a..0ddba5d 100755 --- a/call_task.sh +++ b/call_task.sh @@ -5,6 +5,7 @@ TASK=$1 printf "${CYAN}===========[$TASK]===========\n" source cbuild/init.sh +clear_dir $OBJDIR if [ -f "$PRE_TASK_SCRIPT" ]; then printf "${BLUE}executing $PRE_TASK_SCRIPT\n" diff --git a/functions.sh b/functions.sh index 0caf552..f9f89fd 100755 --- a/functions.sh +++ b/functions.sh @@ -62,7 +62,6 @@ $(find $OBJDIR -name '*.a')" if $CMP_CPP $args -o $outfile $(echo $objects | tr '\n' ' ') then printf "${GREEN}file $CYAN$outfile ${GREEN}created\n${GRAY}" - clear_dir $OBJDIR else printf "${RED}some error happened\n${GRAY}" exit 1 @@ -79,7 +78,6 @@ function pack_static_lib { if ar rcs $outfile $(echo $objects | tr '\n' ' ') then printf "${GREEN}file $CYAN$outfile ${GREEN}created\n${GRAY}" - clear_dir $OBJDIR else printf "${RED}some error happened\n${GRAY}" exit 1