base-files/functions.sh: use command -v instead of which
authorRosen Penev <[email protected]>
Fri, 17 Jan 2020 22:38:19 +0000 (14:38 -0800)
committerPetr Štetiar <[email protected]>
Sat, 11 Jul 2020 12:42:32 +0000 (14:42 +0200)
commit8e6f2c029f72d79d263290a415dc8063307a9a42
tree467f861b4923541e10dd606dff9a07a74bbb67aa
parentdec9ae6d9e8352498b19287b6361c83701308662
base-files/functions.sh: use command -v instead of which

which must be executed. command -v is a shell builtin.

https://github.com/koalaman/shellcheck/wiki/SC2230

Signed-off-by: Rosen Penev <[email protected]>
package/base-files/files/lib/functions.sh