mirror of
https://github.com/juewuy/ShellCrash.git
synced 2024-11-16 11:42:18 +08:00
Merge pull request #641 from SharerMax/fix/tmp_find
修复`/tmp` 内核文件不能正确查找
This commit is contained in:
commit
5ed7ab3269
|
@ -112,7 +112,7 @@ ckstatus(){
|
||||||
#检查执行权限
|
#检查执行权限
|
||||||
[ ! -x ${CRASHDIR}/start.sh ] && chmod +x ${CRASHDIR}/start.sh
|
[ ! -x ${CRASHDIR}/start.sh ] && chmod +x ${CRASHDIR}/start.sh
|
||||||
#检查/tmp内核文件
|
#检查/tmp内核文件
|
||||||
for file in `ls -F /tmp | grep -v [/\$] | grep -v ' ' | grep -Ev ".*[(gz)(zip)(7z)(tar)]$" | grep -iE 'CrashCore|^clash$|^clash-linux.*|^mihomo.*|^sing.*box|^clash.meta.*'` ; do
|
for file in `ls -F /tmp | grep -v [/\$] | grep -v ' ' | grep -Ev ".*(gz|zip|7z|tar)$" | grep -iE 'CrashCore|^clash$|^clash-linux.*|^mihomo.*|^sing.*box|^clash.meta.*'` ; do
|
||||||
file=/tmp/$file
|
file=/tmp/$file
|
||||||
chmod +x $file
|
chmod +x $file
|
||||||
echo -e "发现可用的内核文件: \033[36m$file\033[0m "
|
echo -e "发现可用的内核文件: \033[36m$file\033[0m "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user