mirror of https://github.com/gogits/gogs.git
Lunny Xiao
11 years ago
3 changed files with 23 additions and 5 deletions
@ -0,0 +1,13 @@
|
||||
//
|
||||
// +build !windows
|
||||
|
||||
package cmd |
||||
|
||||
import ( |
||||
"os/exec" |
||||
) |
||||
|
||||
func makeLink(oldPath, newPath string) error { |
||||
cmd := exec.Command("ln", "-s", oldPath, newPath) |
||||
return cmd.Run() |
||||
} |
Loading…
Reference in new issue