openwrt / gh-action-sdk

GitHub CI action to build packages via SDK
29 stars 47 forks source link

clean up and print error on refresh fail #3

Closed lipnitsk closed 3 years ago

lipnitsk commented 3 years ago

set -e causes bash to exit right away on cmd failure. So run the command inside the if statement to get a chance to clean up and print an error message.

https://superuser.com/a/940542 https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin

Signed-off-by: Ilya Lipnitskiy ilya.lipnitskiy@gmail.com

aparcar commented 3 years ago

Thank you, tag updated.