eh complexity in these scripts not in each repo

This commit is contained in:
Felix Van der Jeugt 2021-12-09 23:18:29 +01:00
parent b10de59f31
commit 3ede5c6079
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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