init commit da
This commit is contained in:
1 parent
d64b4f3983
commit
22359129af
5 files changed
+300
-35
No files matched your search
@@ -35,7 +35,6 @@ Options:
|
||||
:a -> ask before doing
|
||||
:nl -> disable recording in databases and logs
|
||||
:nd -> do not download deps
|
||||
:nrc -> disable uid 0 (root) checks
|
||||
:r -> reinstall already installed deps
|
||||
Vars:
|
||||
DESTDIR -> path where the package will be installed/removed`
|
||||
@@ -79,11 +78,6 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if os.Getuid() != 0 && slices.Contains(_root_cmds, cmds[0]) && !slices.Contains(opts, ":nrc") {
|
||||
fmt.Println("!! this command is root-only. run this with root privileges")
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
// fmt.Println(cmds, oths, opts)
|
||||
if cmds[0] == "h" {
|
||||
printHelp()
|
||||
|
||||
Reference in new issue
Block a user