File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
sql/files/defaultdata/judgehost_info Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,10 @@ output_file="$1"
1010# Posted by fjarlq, modified by community. See post 'Timeline' for change history
1111# Retrieved 2025-11-15, License - CC BY-SA 4.0
1212
13- if [ " ${SHELL#* " bash" } " != " ${SHELL} " ]; then
14- exec & >> " ${output_file} "
15- else
16- # We can't use &>> as it's not POSIX,
17- # this does introduce a racecondition
18- exec 1>> " ${output_file} "
19- exec 2>> " ${output_file} "
20- fi
13+ # We can't use &>> as it's not POSIX,
14+ # this does introduce a racecondition
15+ exec 1>> " ${output_file} "
16+ exec 2>> " ${output_file} "
2117
2218# Generic linux/distro information
2319uname -a
@@ -34,12 +30,4 @@ cat /proc/cpuinfo
3430free -h
3531cat /proc/meminfo
3632
37- if [ command -v hwinfo ]; then
38- hwinfo --short
39- fi
40-
41- if [ command -v inxi ]; then
42- inxi -Fx
43- fi
44-
4533exit 0
You can’t perform that action at this time.
0 commit comments