Skip to content

Commit

Permalink
add linux support release
Browse files Browse the repository at this point in the history
  • Loading branch information
adierebel committed Aug 14, 2018
1 parent 67c0892 commit 9dc8d70
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions goswitch.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"fmt"
"os"
"fmt"
"os"
"path"
"runtime"
"io/ioutil"
Expand All @@ -19,7 +19,7 @@ var (

func main() {
// Parse arguments
kingpin.Version("1.0.1")
kingpin.Version("1.0.2")
switch kingpin.Parse() {
case "new":
apply()
Expand All @@ -29,7 +29,7 @@ func main() {
func apply() {
// Get current dir
go_path, err := os.Getwd()
check(err)
check(err)

// Print info
fmt.Println(" * Create '" +*target_path+ "' directory")
Expand Down Expand Up @@ -70,16 +70,16 @@ func apply() {

func check(e error) {
// Chek error
if e != nil {
panic(e)
}
if e != nil {
panic(e)
}
}

func file_writer(filepath string, body string) {
// Write file
data := []byte(body)
err := ioutil.WriteFile(filepath, data, os.FileMode(*filemode))
check(err)
err := ioutil.WriteFile(filepath, data, os.FileMode(*filemode))
check(err)
}

func write_script_windows(go_path string) {
Expand Down

0 comments on commit 9dc8d70

Please sign in to comment.