Escape username for ynh_user_exists

This commit is contained in:
tituspijean 2022-06-02 13:33:28 +02:00 committed by GitHub
parent 62613baad5
commit 638a3e8b1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ ynh_user_exists() {
# Manage arguments with getopts
ynh_handle_getopts_args "$@"
yunohost user list --output-as json --quiet | jq -e ".users.${username}" >/dev/null
yunohost user list --output-as json --quiet | jq -e ".users.\"${username}\"" >/dev/null
}
# Retrieve a YunoHost user information