ocaml-dune / binary-distribution

A web page for dune binary distribution
https://preview.dune.build/
ISC License
2 stars 5 forks source link

Ensure tmp dir is deleted on exit #65

Closed gridbugs closed 3 days ago

gridbugs commented 3 days ago

Deleting the tmp dir with a command in the script leaves the potential for the script to exit before reaching that line, leaving the tmp dir undeleted. Further, deleting the tmp dir with "rmdir" will only work if the tmp dir is empty which may be the case if the script failed to move some of the files during installation. This change addresses both these issues.