Clean up after release

This commit is contained in:
Jack Kingsman
2026-03-29 22:37:38 -07:00
parent 8ee08ff44a
commit f01e91defc

View File

@@ -12,6 +12,7 @@ cd "$SCRIPT_DIR"
RELEASE_WORK_DIR=""
RELEASE_BUNDLE_DIR_NAME="Remote-Terminal-for-MeshCore"
RELEASE_ASSET=""
DOCKER_IMAGE="jkingsman/remoteterm-meshcore"
DOCKER_PLATFORMS="linux/amd64,linux/arm64"
@@ -22,6 +23,9 @@ cleanup_release_build_artifacts() {
if [ -n "$RELEASE_WORK_DIR" ] && [ -d "$RELEASE_WORK_DIR" ]; then
rm -rf "$RELEASE_WORK_DIR"
fi
if [ -n "$RELEASE_ASSET" ] && [ -f "$SCRIPT_DIR/$RELEASE_ASSET" ]; then
rm -f "$SCRIPT_DIR/$RELEASE_ASSET"
fi
}
trap cleanup_release_build_artifacts EXIT