Replace deprecated 'which' with 'command -v'

This fixed the following warning: "/usr/bin/which: this version of which' is deprecated; use command -v' in scripts instead."

Similar fixes have been done in the upstream code here: https://github.com/lxc/lxc/pulls?q=is%3Apr+is%3Aclosed+author%3Adiederikdehaas+
But noticed there was also one in the debian directory

Merge request reports

Loading