UPD: command

This commit is contained in:
X1a0He
2024-03-06 20:22:47 +08:00
parent ca5052936b
commit aeeca8e712

9
秋神_启动.command Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
cd "${0%/*}" || exit 1
read -p "⚙️ 请输入密码(明文)然后回车: " -r passwd
printf "\r\033[1A%s" "" 1>&2
printf "\r\033[K%s" "" 1>&2
find . -name "*.*" 2>/dev/null | xargs otool -l 2>/dev/null | grep -E "(minos|sdk)" 2>/dev/null
echo "${passwd}" | sudo -S echo "⚙️ 当前是 $(sudo -S whoami) 用户"
chmod +x tool/optool
sudo -S python3 main.py