summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-12-01 22:34:11 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-12-01 22:34:11 -0700
commit684c10937a811a51320a9c3a653b8a183e07d959 (patch)
tree6d8e19bf27b763fc430b122df73727e9c3cca6ff
parentf76bfc2d781c0d9b27b8862682fbd51c6fb55af9 (diff)
downloadaoc-684c10937a811a51320a9c3a653b8a183e07d959.tar.gz
aoc-684c10937a811a51320a9c3a653b8a183e07d959.zip
fix front justified zero's
-rwxr-xr-xaoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/aoc b/aoc
index f4c56a0..cde706a 100755
--- a/aoc
+++ b/aoc
@@ -102,7 +102,7 @@ aoc() {
cp -r template/* $curr
cd $curr
- get_problem_input $(get_aoc_cookie) $year $day $AOCINPUT
+ get_problem_input $(get_aoc_cookie) $year $(echo $day | sed 's/^0*//') $AOCINPUT
echo "Initialized $curr"
else
@@ -149,7 +149,7 @@ aoc() {
echo "..====.."
echo "Submitting Answer=($output)"
- submit_problem $(get_aoc_cookie) $year $day $level $output
+ submit_problem $(get_aoc_cookie) $year $(echo $day | sed 's/^0*//') $level $output
fi
if [[ $1 == "cookie" ]]; then