diff --git a/call_task.sh b/call_task.sh index 0ddba5d..330ae0a 100644 --- a/call_task.sh +++ b/call_task.sh @@ -5,7 +5,6 @@ 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 158e86d..0caf552 100644 --- a/functions.sh +++ b/functions.sh @@ -62,7 +62,7 @@ $(find $OBJDIR -name '*.a')" if $CMP_CPP $args -o $outfile $(echo $objects | tr '\n' ' ') then printf "${GREEN}file $CYAN$outfile ${GREEN}created\n${GRAY}" - rm -rf $OBJDIR + clear_dir $OBJDIR else printf "${RED}some error happened\n${GRAY}" exit 1 @@ -79,7 +79,7 @@ function pack_static_lib { if ar rcs $outfile $(echo $objects | tr '\n' ' ') then printf "${GREEN}file $CYAN$outfile ${GREEN}created\n${GRAY}" - rm -rf $OBJDIR + clear_dir $OBJDIR else printf "${RED}some error happened\n${GRAY}" exit 1