Issues with the cleanup function when aborting
There are two bugs with the cleanup function when we interrupt the script:
- After a
read -s
, the user inputs are kept hidden (e.g, try Ctrl+C after a password prompt) - After the prompt for sudo password, the user is not asked to remove the resources. This is because at this point in the script, we are in the
cube_resources
folder, so the cleanup function is checking to remove resources that would be located relatively to this folder... Solution is to use absolute paths.