Skip to content

Commit 5efae26

Browse files
committed
fix: ignore case for bit_interactive
1 parent 440a72e commit 5efae26

File tree

2 files changed

+168
-3
lines changed

2 files changed

+168
-3
lines changed

cmd/bit_cmd.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ var BitCmd = &cobra.Command{
2323
Run: func(cmd *cobra.Command, args []string) {
2424
suggestionTree, bitCmdMap := CreateSuggestionMap(cmd)
2525

26-
repeat := os.Getenv("BIT_INTERACTIVE") == "TRUE"
26+
repeat := strings.ToLower(os.Getenv("BIT_INTERACTIVE")) == "true"
2727
repeatAmount := 1
2828
if repeat {
2929
repeatAmount = 5000
3030
}
3131

32-
33-
for i := repeatAmount; i > 0; i-- {
32+
for i := repeatAmount; i > 0; i-- {
3433
resp := SuggestionPrompt("> bit ", shellCommandCompleter(suggestionTree))
3534
subCommand := resp
3635
if subCommand == "" {

0 commit comments

Comments
 (0)