(1) When 'lsof' is missing, tell the user to install it.
(2) 'which' behave differently on Arch Linux. It does not return a status code '1' when the command is missing... will instead use a mix of "command -v" and "which" that should work with hopefully all Linux distribution.
(1) When 'lsof' is missing, tell the user to install it.
(2) 'which' behave differently on Arch Linux. It does not return a status code '1' when the command is missing... will instead use a mix of "command -v" and "which" that should work with hopefully all Linux distribution.