]> git.ipfire.org Git - thirdparty/lxc.git/commit
use which instead of type
authorDwight Engen <dwight.engen@oracle.com>
Tue, 22 Jan 2013 20:59:44 +0000 (15:59 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 22 Jan 2013 22:51:59 +0000 (17:51 -0500)
commit169bf5e07ed044a11fe6f5dd683615bee001ee36
treeece01d5ddf355eb675ffecadc919732daf73d407
parent2b0e17e48f4f55ddfcde74d1f00932837fa2cfda
use which instead of type

This is for consistency with the rest of lxc, and also because type checks for
shell builtins, a behavior that we do not want in these cases. Ensure stderr
for which is redirected to /dev/null also.

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-clone.in
src/lxc/lxc-create.in
src/lxc/lxc-shutdown.in
templates/lxc-busybox.in
templates/lxc-ubuntu.in