mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
mage: Add uninstall target
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
e5591e89d3
commit
21dbfa1f11
@@ -57,6 +57,11 @@ func Install() error {
|
||||
return sh.RunWith(flagEnv(), goexe, "install", "-ldflags", ldflags, "-tags", buildTags(), packageName)
|
||||
}
|
||||
|
||||
// Uninstall hugo binary
|
||||
func Uninstall() error {
|
||||
return sh.Run(goexe, "clean", "-i", packageName)
|
||||
}
|
||||
|
||||
func flagEnv() map[string]string {
|
||||
hash, _ := sh.Output("git", "rev-parse", "--short", "HEAD")
|
||||
return map[string]string{
|
||||
|
Reference in New Issue
Block a user