projects
/
advent-of-code-2019.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes / changes to re-run against the google login data
[advent-of-code-2019.git]
/
day02
/
computer.sh
diff --git
a/day02/computer.sh
b/day02/computer.sh
old mode 100644
(file)
new mode 100755
(executable)
index
d240dc6
..
fdb0c57
--- a/
day02/computer.sh
+++ b/
day02/computer.sh
@@
-1,6
+1,8
@@
#!/bin/bash
-exec 3<input.txt
+filename=${1:-input.txt}
+
+exec 3<"$filename"
OLDIFS=$IFS
IFS="," read -u 3 -a orig_data