Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
whyakari authored Aug 10, 2023
1 parent 38199ce commit ba5b86b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"os/exec"
"github.com/whyakari/nvim/pkg/arch"
"github.com/whyakari/nvim/pkg/ubuntu"
"github.com/whyakari/nvim/pkg/termux"
)

Expand All @@ -20,17 +19,7 @@ func main() {
return
}
}
} else if ubuntu.IsUbuntu() {
cmds := ubuntu.UbuntuCommands()

for _, cmd := range cmds {
err := exec.Command("bash", "-c", cmd).Run()
if err != nil {
fmt.Println("Error when executing the command:", cmd)
return
}
}
} else if termux.IsTermux() {
} else if termux.IsTermux() {
cmds := termux.TermuxCommands()

for _, cmd := range cmds {
Expand Down

0 comments on commit ba5b86b

Please # to comment.