From fc114004be7e0de98734c171fdc31209c94ed3ac Mon Sep 17 00:00:00 2001 From: Thomas Gebert Date: Thu, 24 Jul 2025 10:25:42 +0200 Subject: [PATCH] Extend Help --- password-change-tool/change-user-password.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/password-change-tool/change-user-password.sh b/password-change-tool/change-user-password.sh index 479c7e2..0ab392e 100644 --- a/password-change-tool/change-user-password.sh +++ b/password-change-tool/change-user-password.sh @@ -5,6 +5,7 @@ ################################################################################ USER_TO_CHANGE="" NEW_PASSWORD="" +MY_NAME=$(basename "$0") ################################################################################ @@ -18,7 +19,10 @@ die() { show_help() { cat << HELP -Script to update the password of a user. Either +Script to update the password of a user. +The password is either + - entered interactively + - redirected from STDIN via ${MY_NAME} ... <<< 'newpassword' Usage: $1 [OPTION] Mandatory: @@ -123,4 +127,4 @@ done check_if_root check_user get_password -change_user_password +change_user_password \ No newline at end of file