mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-03 01:34:44 +00:00
update: sudo check first
This commit is contained in:
1 parent
5ff461af42
commit
982e1064c2
1 file changed
+4
@@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
checkRootPermit() {
|
||||
[[ $EUID -ne 0 ]] && echo "请使用sudo/root权限运行本脚本" && exit 1
|
||||
}
|
||||
|
||||
checkSystemArch() {
|
||||
arch=$(uname -m)
|
||||
if [[ $arch == "x86_64" ]]; then
|
||||
|
||||
Reference in new issue
Block a user