mirror of
https://github.com/miguelmota/cointop
synced 2024-11-12 07:10:26 +00:00
exec bash
Former-commit-id: 3d291dee9605d780b1f73a2782d77f7377e9624e [formerly 3d291dee9605d780b1f73a2782d77f7377e9624e [formerly 93dfea769d6be9efabb4dad93c71257f8c3cfb38 [formerly f135c69607b856d531688ead923b20b5f612ac40]]] Former-commit-id: 37d82a1fff07edf980f1fcfce49d9e9a1775ce50 Former-commit-id: 5dd69790a711fc2b3cd12966c7fcf2a5d4fed35c [formerly 95c825410462b5eeb13e69597c1c43950a082e79] Former-commit-id: ee62acdcda13d2138fac4c84b8f1fd601edbac2a
This commit is contained in:
parent
c8705a0864
commit
00bc3c6565
@ -1,6 +1,7 @@
|
||||
package open
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@ -22,7 +23,7 @@ var possibleCmds = []string{
|
||||
|
||||
func init() {
|
||||
for _, cmd := range possibleCmds {
|
||||
out, err := exec.Command("/usr/bin/command", "-v", cmd).Output()
|
||||
out, err := exec.Command("/bin/bash", "-c", fmt.Sprintf("%s %s %s", "command", "-v", cmd)).Output()
|
||||
if err != nil {
|
||||
log.Println("err ", err)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user