Skip to content

Commit 95f16e8

Browse files
committed
More shellcheck ignores and fixes.
1 parent a39e659 commit 95f16e8

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

icpc-wf/check-turboboost

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/sh -e
22

3-
echo -n "checking no_turbo: "
3+
printf "checking no_turbo: "
44
cat /sys/devices/system/cpu/intel_pstate/no_turbo
55

6-
echo -n "min perf pct: "
6+
printf "min perf pct: "
77
cat /sys/devices/system/cpu/intel_pstate/min_perf_pct
88

9-
echo -n "max perf pct: "
9+
printf "max perf pct: "
1010
cat /sys/devices/system/cpu/intel_pstate/max_perf_pct
1111

1212
echo "scaling governors: "

icpc-wf/comp_config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
#shellcheck disable=SC1003,SC2034,SC2086
3+
24
set -eu -o pipefail
35

46
# Set credentials in ~/.netrc

icpc-wf/comp_scores

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh -e
2+
# shellcheck disable=SC2002
23

34
# Set credentials in ~/.netrc
45

icpc-wf/retrieve-judging.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
jid=$1
44

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)
66

77
dest="/tmp/j${jid}/"
88
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
1010

1111
echo "Succesfully copied package to $dest"

0 commit comments

Comments
 (0)