summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-01 22:42:37 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-01 22:42:37 -0500
commitd8ca5eca153208f30e91ec821ed0acfcc410c273 (patch)
treefba88a6ece015def53d8b9233840b5f4961d2e1f /bin
parent0b0c77ccbda06413ee3a3f42055d7f12a812568a (diff)
downloadadvent-of-code-d8ca5eca153208f30e91ec821ed0acfcc410c273.tar.gz
advent-of-code-d8ca5eca153208f30e91ec821ed0acfcc410c273.zip
set -eu
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get-input1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/get-input b/bin/get-input
index da76600..2d4a424 100755
--- a/bin/get-input
+++ b/bin/get-input
@@ -1,4 +1,5 @@
#!/bin/sh
+set -eu
day=${1:-$(date +%-d)}
year=${2:-$(date +%Y)}