mirror of
https://github.com/ZeusWPI/Advent-of-Code-Aggregator.git
synced 2024-11-22 14:51:11 +01:00
no octal numbers
This commit is contained in:
parent
621f6b479c
commit
b10de59f31
2 changed files with 3 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
day="$(printf '%02d' "${1##0}")"
|
day="$1"
|
||||||
part="$2"
|
part="$2"
|
||||||
inputfile="$PWD/../inputs/$day.txt"
|
inputfile="$PWD/../inputs/$(printf '%02d' "${day##0}").txt"
|
||||||
|
|
||||||
[ -x "prepare" ] || exit 0
|
[ -x "prepare" ] || exit 0
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
day="$1"
|
day="$1"
|
||||||
part="$2"
|
part="$2"
|
||||||
|
|
||||||
day="$(printf '%02d' "$day")"
|
inputfile="$PWD/inputs/$(printf '%02d' "${day##0}").txt"
|
||||||
|
|
||||||
inputfile="$PWD/inputs/${day}.txt"
|
|
||||||
|
|
||||||
if ! test -f "$inputfile"; then
|
if ! test -f "$inputfile"; then
|
||||||
echo "no input available" >&2
|
echo "no input available" >&2
|
||||||
|
|
Loading…
Reference in a new issue