Skip to content

Temporary File Cleanup For scripts/hubble-bootstrap.sh #2356

@ATella12

Description

@ATella12

This script creates a temporary file with mktemp, but it doesn’t clean it up. Adding a trap at the beginning to remove this temporary file in case of errors could be helpful:

trap 'rm -f "$tmp_file"' EXIT

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-bugA fix for a bug with the current system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions