mirror of
https://github.com/ZeusWPI/Advent-of-Code-Aggregator.git
synced 2024-11-24 15: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
|
#!/bin/sh
|
||||||
day="$1"
|
day="$(printf '%02d' ${1##0})"
|
||||||
part="$2"
|
part="$2"
|
||||||
inputfile="$PWD/../inputs/$(printf '%02d' "${day##0}").txt"
|
inputfile="$PWD/../inputs/${day}.txt"
|
||||||
|
|
||||||
[ -x "prepare" ] || exit 0
|
[ -x "prepare" ] || exit 0
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
day="$1"
|
day="$(printf '%02d' ${1##0})"
|
||||||
part="$2"
|
part="$2"
|
||||||
|
|
||||||
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