Skip to content

Commit

Permalink
Installation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
curusarn committed May 13, 2023
1 parent 611198e commit a6e4c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmd/control/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var updateCmd = &cobra.Command{
execArgs = append(execArgs, "--beta")
}
execCmd := exec.Command("bash", execArgs...)
execCmd.Stdin = os.Stdin
execCmd.Stdout = os.Stdout
execCmd.Stderr = os.Stderr
err = execCmd.Run()
Expand Down
2 changes: 1 addition & 1 deletion internal/device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func promptForName(out *output.Output, fpath string) (string, error) {
fmt.Printf("\nChoose a short name for this device (default: '%s'): ", hostStub)
input, err := reader.ReadString('\n')
name := strings.TrimRight(input, "\n")
if err != nil {
if err != nil && err.Error() != "EOF" {
return "", fmt.Errorf("reader error: %w", err)
}
if name == "" {
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if [ -z "${__RESH_VERSION-}" ]; then
# But don't output anything
./scripts/resh-daemon-stop.sh -q ||:
else
./scripts/resh-daemon-stop.sh
./scripts/resh-daemon-stop.sh ||:
fi

echo "Installing ..."
Expand Down

0 comments on commit a6e4c85

Please sign in to comment.