Refactoring using "local -r"

This commit is contained in:
m8in committed 2026-10-07 23:55:29 +02:00
1 parent 38d0ebf659
commit ac8c2de701
9 files changed
+97 -137

No files matched your search

+1 -3
View File
@@ -9,9 +9,7 @@ source /cis/core/base.module.sh
# Note that an unprivileged user can use this script successfully,
# if no user has to be added to the host because it already exists.
function addNormalUser() {
local _USER
_USER="${1:?"Missing first parameter USER"}"
readonly _USER
local -r _USER="${1:?"Missing first parameter USER"}"
#The user already exists
id -u "${_USER}" &> /dev/null \