mirror of
https://github.com/ZeusWPI/Advent-of-Code-Aggregator.git
synced 2024-11-28 08:41:12 +01:00
eh complexity in these scripts not in each repo
This commit is contained in:
parent
b10de59f31
commit
3ede5c6079
2 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
day="$1"
|
||||
day="$(printf '%02d' ${1##0})"
|
||||
part="$2"
|
||||
inputfile="$PWD/../inputs/$(printf '%02d' "${day##0}").txt"
|
||||
inputfile="$PWD/../inputs/${day}.txt"
|
||||
|
||||
[ -x "prepare" ] || exit 0
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/sh
|
||||
day="$1"
|
||||
day="$(printf '%02d' ${1##0})"
|
||||
part="$2"
|
||||
|
||||
inputfile="$PWD/inputs/$(printf '%02d' "${day##0}").txt"
|
||||
inputfile="$PWD/inputs/${day}.txt"
|
||||
|
||||
if ! test -f "$inputfile"; then
|
||||
echo "no input available" >&2
|
||||
|
|
Loading…
Reference in a new issue