Skip to content

Commit 3cec5bf

Browse files
committed
fix ordering issue
1 parent b4341d1 commit 3cec5bf

File tree

33 files changed

+19
-3
lines changed

33 files changed

+19
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

misc/browser

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ YEAR=$1
44
DAY=$2
55
PART=${3:-1}
66

7-
cd ~/aoc/$YEAR/day$DAY
7+
if [[ $DAY -lt 10 ]]; then
8+
DIR=day0$1
9+
else
10+
DIR=day$1
11+
fi
12+
13+
cd ~/aoc/$YEAR/$DIR
814

915
set -o pipefail
1016
while true; do

start

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#!/bin/bash
22

33
DAY=$1
4-
DIR=day$1
4+
if [[ $DAY -lt 10 ]]; then
5+
DIR=day0$1
6+
else
7+
DIR=day$1
8+
fi
59
YEAR=${2:-2024}
610

711
cd ~/aoc

test-runner

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ YEAR=$1
2222
DAY=$2
2323
PART=${3:-1}
2424

25+
if [[ $DAY -lt 10 ]]; then
26+
DIR=day0$1
27+
else
28+
DIR=day$1
29+
fi
30+
2531
cleanup() {
2632
pkill -TERM -P $PID &> /dev/null
2733
kill -SIGTERM $PID &> /dev/null
2834
}
2935

30-
cd ~/aoc/$YEAR/day$DAY
36+
cd ~/aoc/$YEAR/$DIR
3137

3238
function validator() {
3339
local SOLUTION="$(cat $1)"

0 commit comments

Comments
 (0)