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() {
|
func main() {
|
||||||
|
|
||||||
|
if os.Getuid() == 0 {
|
||||||
|
log.Fatalf("Error: Do not run pikman as root")
|
||||||
|
}
|
||||||
|
|
||||||
osType := types.Ubuntu
|
osType := types.Ubuntu
|
||||||
containerName := ""
|
containerName := ""
|
||||||
|
|
||||||
@ -22,7 +26,7 @@ func main() {
|
|||||||
app := &cli.App{
|
app := &cli.App{
|
||||||
Name: "pikman",
|
Name: "pikman",
|
||||||
Usage: "One package manager to rule them all",
|
Usage: "One package manager to rule them all",
|
||||||
Version: "v0.11",
|
Version: "v1.23.1.20.0",
|
||||||
EnableBashCompletion: true,
|
EnableBashCompletion: true,
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
|
Loading…
Reference in New Issue
Block a user