summaryrefslogtreecommitdiff
path: root/aoc
diff options
context:
space:
mode:
Diffstat (limited to 'aoc')
-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