We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 911e71a + c8302b3 commit ae16b96Copy full SHA for ae16b96
main.go
@@ -38,6 +38,11 @@ func setDefault(identifier string) error {
38
return fmt.Errorf("identifier cannot be empty")
39
}
40
41
+ // Todo: actually run as the logged in user if run as root. For now just bail
42
+ if os.Geteuid() == 0 {
43
+ return fmt.Errorf("this tool must be run as the logged in user")
44
+ }
45
+
46
c, err := client.NewClient()
47
if err != nil {
48
return err
0 commit comments