1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

homectl: clarify that we pick the default shell if the prompt is skipped

This commit is contained in:
Lennart Poettering 2025-02-05 10:58:36 +01:00
parent 94a2b1cd25
commit 9e6fbb5a51

View File

@ -2640,13 +2640,13 @@ static int create_interactively(void) {
shell = mfree(shell);
r = ask_string(&shell,
"%s Please enter the shell to use for user %s (empty to skip): ",
"%s Please enter the shell to use for user %s (empty for default): ",
special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), username);
if (r < 0)
return log_error_errno(r, "Failed to query user for username: %m");
if (isempty(shell)) {
log_info("No data entered, skipping.");
log_info("No data entered, leaving at default.");
break;
}