From b10de59f31fe9c17d1f358ae885c61f72c2c638c Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 9 Dec 2021 22:45:10 +0100 Subject: [PATCH] no octal numbers --- 2021/benchmark | 4 ++-- 2021/complete-benchmark | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/2021/benchmark b/2021/benchmark index 5067492..5bbf638 100755 --- a/2021/benchmark +++ b/2021/benchmark @@ -1,7 +1,7 @@ #!/bin/sh -day="$(printf '%02d' "${1##0}")" +day="$1" part="$2" -inputfile="$PWD/../inputs/$day.txt" +inputfile="$PWD/../inputs/$(printf '%02d' "${day##0}").txt" [ -x "prepare" ] || exit 0 diff --git a/2021/complete-benchmark b/2021/complete-benchmark index cda4e58..f558572 100755 --- a/2021/complete-benchmark +++ b/2021/complete-benchmark @@ -2,9 +2,7 @@ day="$1" part="$2" -day="$(printf '%02d' "$day")" - -inputfile="$PWD/inputs/${day}.txt" +inputfile="$PWD/inputs/$(printf '%02d' "${day##0}").txt" if ! test -f "$inputfile"; then echo "no input available" >&2