diff --git a/scripts/_common.sh b/scripts/_common.sh index 6e169e8..c7497a5 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -43,7 +43,7 @@ apply_layout() { garage_command=$1 $garage_command layout show 2>/dev/null - if [ "$(./garage -c garage.toml layout show | grep 'This new layout cannot yet be applied')" ] + if [ "$($garage_command -c garage.toml layout show | grep 'This new layout cannot yet be applied')" ] then ynh_print_warn --message="Unable to apply layout. No enough nodes" return 0