From 2d9a929aa1155048de63a19e077136a3716c995e Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Wed, 8 May 2024 17:59:03 +0200 Subject: [PATCH] Use command, not which (more portable) --- ynh-dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ynh-dev b/ynh-dev index 08e0669..0bd1f6e 100755 --- a/ynh-dev +++ b/ynh-dev @@ -180,7 +180,7 @@ function prepare_cache_and_deps() { function check_incus_setup() { # Check incus is installed somehow - if ! which incus &>/dev/null; then + if ! command -v incus &>/dev/null; then critical "You need to have Incus installed for ynh-dev to be usable from the host machine. Refer to the README to know how to install it." fi if ! id -nG "$(whoami)" | grep -qw "incus-admin"; then @@ -455,7 +455,7 @@ function dev() { assert_inside_vm - which inotifywait &>/dev/null || critical "You should first run: apt install inotify-tools" + command -v inotifywait &>/dev/null || critical "You should first run: apt install inotify-tools" info "Now monitoring for changes in python files, restarting yunohost-api and yunohost-portal-api when changes occur!"