File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ COPY install-preview-prettylog--app/prettylog /prettylog
18
18
19
19
COPY entrypoint.sh /entrypoint.sh
20
20
21
- ENTRYPOINT [ "/tini" , "--" , "/entrypoint.sh" ]
21
+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ var (
39
39
40
40
// confirm from the user to continue
41
41
func confirm () bool {
42
- scanner := bufio .NewScanner (os .Stdin )
43
42
fmt .Print ("Continue? [y|n]: " )
44
- scanner .Scan ()
45
- input := strings .ToLower (scanner .Text ())
46
- fmt .Println (input )
47
- // yes by default
48
- if input == "y" || input == "yes" || input == "" {
43
+ var input string
44
+ _ , err := fmt .Scanln (& input )
45
+ if err != nil {
46
+ panic (err )
47
+ }
48
+ input = strings .ToLower (input )
49
+ if input == "y" || input == "yes" {
49
50
return true
50
51
}
51
52
return false
You can’t perform that action at this time.
0 commit comments