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