-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from mah0x211/change-the-luajit-installation
Change the luajit installation instructions
- Loading branch information
Showing
7 changed files
with
225 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"io" | ||
"os" | ||
"os/exec" | ||
) | ||
|
||
func DoExecEx(name string, stdout, stderr io.Writer, argv ...string) error { | ||
cmd := exec.Command(name, argv...) | ||
cmd.Stdout = stdout | ||
cmd.Stderr = stderr | ||
cmd.Env = os.Environ() | ||
return cmd.Run() | ||
} | ||
|
||
func DoExec(name string, argv ...string) error { | ||
return DoExecEx(name, os.Stdout, os.Stderr, argv...) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.