Skip to content

Commit 87d8eb8

Browse files
committed
debugging commit
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
1 parent 0f9b73b commit 87d8eb8

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

install/preview/leeway.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ COPY install-preview-prettylog--app/prettylog /prettylog
1818

1919
COPY entrypoint.sh /entrypoint.sh
2020

21-
ENTRYPOINT [ "/tini", "--", "/entrypoint.sh" ]
21+
ENTRYPOINT ["/entrypoint.sh" ]

install/preview/prettylog/main.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@ var (
3939

4040
// confirm from the user to continue
4141
func confirm() bool {
42-
scanner := bufio.NewScanner(os.Stdin)
4342
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" {
4950
return true
5051
}
5152
return false

0 commit comments

Comments
 (0)