Open fflorent opened 1 year ago
There are theoretically some cases where the installer is interrupted because of failures or because the user triggers the interruption.
In such case, there is no guarantee that the ruby binary is restored.
Use a sub-shell with a trap of exit (the cleanup function. Whether the sub-shell fails or suceeds, the trap is run.
cleanup
Problem
There are theoretically some cases where the installer is interrupted because of failures or because the user triggers the interruption.
In such case, there is no guarantee that the ruby binary is restored.
Solution
Use a sub-shell with a trap of exit (the
cleanup
function. Whether the sub-shell fails or suceeds, the trap is run.