Set version number to a proper version (1.23.1.20.0), error with a message if launched by root
This commit is contained in:
parent
5776b84861
commit
8e821747d4
6
main.go
6
main.go
@ -10,6 +10,10 @@ import (
|
||||
|
||||
func main() {
|
||||
|
||||
if os.Getuid() == 0 {
|
||||
log.Fatalf("Error: Do not run pikman as root")
|
||||
}
|
||||
|
||||
osType := types.Ubuntu
|
||||
containerName := ""
|
||||
|
||||
@ -22,7 +26,7 @@ func main() {
|
||||
app := &cli.App{
|
||||
Name: "pikman",
|
||||
Usage: "One package manager to rule them all",
|
||||
Version: "v0.11",
|
||||
Version: "v1.23.1.20.0",
|
||||
EnableBashCompletion: true,
|
||||
Flags: []cli.Flag{
|
||||
&cli.BoolFlag{
|
||||
|
Loading…
Reference in New Issue
Block a user