move clean_up to trap

This commit is contained in:
Sergey Dudoladov 2019-05-31 17:27:59 +02:00
parent bc05589712
commit 711598956a
1 changed files with 3 additions and 1 deletions

View File

@ -46,10 +46,12 @@ function clean_up(){
} }
function main(){ function main(){
trap "clean_up" QUIT TERM EXIT
start_kind start_kind
set_kind_api_server_ip set_kind_api_server_ip
run_tests run_tests
clean_up
exit 0 exit 0
} }