Skip to content

Commit

Permalink
move cleanup trap into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ethernetdan committed Sep 29, 2023
1 parent 6c9fd83 commit ed79830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ tmpDir="$(mktemp -d)"
function cleanup() {
rm -rf "$tmpDir"
}
trap cleanup EXIT

function main() {
trap cleanup EXIT
local arch
local kernel
local kernelLower
Expand Down

0 comments on commit ed79830

Please sign in to comment.