Skip to content
Snippets Groups Projects
Verified Commit b990cad3 authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

fix

parent 0651e1b2
Branches
Tags
No related merge requests found
...@@ -4,7 +4,7 @@ if [ "$0" != "/tmp/lines/linecount.sh" ]; then ...@@ -4,7 +4,7 @@ if [ "$0" != "/tmp/lines/linecount.sh" ]; then
mkdir -p /tmp/lines mkdir -p /tmp/lines
cp "$0" /tmp/lines/linecount.sh cp "$0" /tmp/lines/linecount.sh
cd "$(dirname "$0")" || exit 1 cd "$(dirname "$0")" || exit 1
cd ../src || exit 1 cd .. || exit 1
exec /tmp/lines/linecount.sh exec /tmp/lines/linecount.sh
fi fi
...@@ -15,13 +15,13 @@ hash="$(git rev-parse HEAD)" ...@@ -15,13 +15,13 @@ hash="$(git rev-parse HEAD)"
for week in w6 w10 w13; do for week in w6 w10 w13; do
echo "week $week incoming..." echo "week $week incoming..."
git clean -fd git clean -fd
git checkout "w${week}" git checkout "${week}"
curr=$(wc -l $(find src -name "*.java") | grep total | awk '{print $1}') curr=$(wc -l $(find src -name "*.java") | grep total | awk '{print $1}')
echo "$curr" > "/tmp/lines/$week" echo "$curr" > "/tmp/lines/$week"
total=$(("$total" + "$curr")) total=$(("$total" + "$curr"))
git reset --hard "w${week}" git reset --hard "${week}"
done done
echo "$total" > /tmp/lines/total echo "$total" > /tmp/lines/total
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment