Skip to content

Commit

Permalink
feat: enforce normal user execution for check command
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Jan 3, 2025
1 parent 2586df9 commit 76f2a61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ var checkCmd = &cobra.Command{
installFlag, _ := cc.Flags().GetBool("install")
uninstallFlag, _ := cc.Flags().GetBool("uninstall")

if shared.IsRoot() {
log.Fatal("Please run this command as a normal user")
}

if installFlag {
installUserTimer()
return
Expand Down

0 comments on commit 76f2a61

Please sign in to comment.