From 572b65a946947ac1f0f903f37b0f497cfb0e69d0 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Tue, 10 Mar 2020 12:09:54 +0100 Subject: [PATCH] Redirect stdout and stderr --- ynh-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ynh-dev b/ynh-dev index 785988b..dad614e 100755 --- a/ynh-dev +++ b/ynh-dev @@ -114,7 +114,7 @@ function create_sym_link() { function check_lxd_setup() { # Check lxd is installed somehow - [[ -e /snap/bin/lxd ]] || which lxd 2>/dev/null \ + [[ -e /snap/bin/lxd ]] || which lxd &>/dev/null \ || critical "You need to have LXD installed for ynh-dev to be usable from the host machine. Refer to the README to know how to install it." # Check that we'll be able to use lxc/lxd using sudo (for which the PATH is defined in /etc/sudoers and probably doesn't include /snap/bin)