Skip to content

Commit f2f56f5

Browse files
Oliver Weilermarc0der
authored andcommitted
Declare sub_command as local and readonly
1 parent 3321af7 commit f2f56f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/bash/sdkman-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
function __sdk_env() {
2020
local -r sdkmanrc=".sdkmanrc"
21-
local sub_command="$1"
21+
local -r sub_command="$1"
2222

2323
if [[ "$sub_command" == "init" ]]; then
2424
__sdkman_generate_sdkmanrc "$sdkmanrc"

0 commit comments

Comments
 (0)