1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00

use var for garage_command

This commit is contained in:
oiseauroch 2023-12-16 21:17:12 +01:00
parent ced6335f6b
commit fcfe9758fd

View file

@ -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