Skip to content

Commit 7cec9f6

Browse files
committed
fix some script warnings
1 parent 77dec64 commit 7cec9f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/scripts/ptc.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ sed --in-place '/^\/\/NOLINTNEXTLINE(readability-identifier-naming)$/d' ../libra
2929
#adds hash code comments
3030
chmod +x ../library/contest/hash.sh
3131
for header in ../library/**/*.hpp; do
32-
cp $header input
33-
lines="$(cat input | wc -l)"
34-
echo $lines
35-
for i in $(seq 1 $lines); do
36-
hash=$(head -n $i input | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
37-
sed -i "${i}s/^/\/\*${hash}\*\/ /" $header
32+
echo "$header"
33+
cp "$header" input
34+
lines="$(wc -l < input)"
35+
for i in $(seq 1 "$lines"); do
36+
hash=$(head -n "$i" input | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
37+
sed -i "${i}s/^/\/\*${hash}\*\/ /" "$header"
3838
done
3939
done
4040

0 commit comments

Comments
 (0)