mirror of
https://github.com/m8tin/cis.git
synced 2026-11-02 14:17:24 +01:00
Refactoring using "local -r"
This commit is contained in:
9 files changed
+97
-137
No files matched your search
@@ -23,8 +23,7 @@ source /cis/core/base.module.sh
|
||||
|
||||
|
||||
function update_repositories() {
|
||||
local _MODE="${1:-"--core"}"
|
||||
readonly _MODE
|
||||
local -r _MODE="${1:-"--core"}"
|
||||
|
||||
[ "${_MODE}" == "--repair" ] \
|
||||
&& (git -C "${CIS[ROOT]:?"Missing CISROOT"}" reset --hard origin/main; \
|
||||
|
||||
Reference in new issue
Block a user