File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh -e
2
2
3
- echo -n " checking no_turbo: "
3
+ printf " checking no_turbo: "
4
4
cat /sys/devices/system/cpu/intel_pstate/no_turbo
5
5
6
- echo -n " min perf pct: "
6
+ printf " min perf pct: "
7
7
cat /sys/devices/system/cpu/intel_pstate/min_perf_pct
8
8
9
- echo -n " max perf pct: "
9
+ printf " max perf pct: "
10
10
cat /sys/devices/system/cpu/intel_pstate/max_perf_pct
11
11
12
12
echo " scaling governors: "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # shellcheck disable=SC1003,SC2034,SC2086
3
+
2
4
set -eu -o pipefail
3
5
4
6
# Set credentials in ~/.netrc
Original file line number Diff line number Diff line change 1
1
#! /bin/sh -e
2
+ # shellcheck disable=SC2002
2
3
3
4
# Set credentials in ~/.netrc
4
5
Original file line number Diff line number Diff line change 2
2
3
3
jid=$1
4
4
5
- judgehost=$( http https://domjudge/api/contests/test1/judgements/${jid} | grep judgehost | cut -d\" -f4 | cut -d- -f1,2)
5
+ judgehost=$( http " https://domjudge/api/contests/test1/judgements/${jid} " | grep judgehost | cut -d\" -f4 | cut -d- -f1,2)
6
6
7
7
dest=" /tmp/j${jid} /"
8
8
mkdir -p " $dest "
9
- scp -r $judgehost :/home/domjudge/domjudge/output/judgings/${judgehost} -0/endpoint-default/c* j${jid} /* " $dest " & > /dev/null
9
+ scp -r " $judgehost :/home/domjudge/domjudge/output/judgings/${judgehost} -0/endpoint-default/c*j${jid} /*" " $dest " > /dev/null 2>&1
10
10
11
11
echo " Succesfully copied package to $dest "
You can’t perform that action at this time.
0 commit comments