diff --git a/scripts/_common.sh b/scripts/_common.sh index 1e46465..7262df2 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -16,9 +16,9 @@ PY_REQUIRED_VERSION=3.9.2 # Create homeassistant user mynh_user_create () { USER_GROUPS="" - [ ynh_system_group_exists --group=dialout ] && USER_GROUPS="${USER_GROUPS} dialout" - [ ynh_system_group_exists --group=gpio ] && USER_GROUPS="${USER_GROUPS} gpio" - [ ynh_system_group_exists --group=i2c ] && USER_GROUPS="${USER_GROUPS} i2c" + [ $(ynh_system_group_exists --group=dialout) ] && USER_GROUPS="${USER_GROUPS} dialout" + [ $(ynh_system_group_exists --group=gpio) ] && USER_GROUPS="${USER_GROUPS} gpio" + [ $(ynh_system_group_exists --group=i2c) ] && USER_GROUPS="${USER_GROUPS} i2c" ynh_system_user_create --username="$app" --groups="$USER_GROUPS" }