Fixes / changes to re-run against the google login data
[advent-of-code-2019.git] / day02 / computer.sh
old mode 100644 (file)
new mode 100755 (executable)
index d240dc6..fdb0c57
@@ -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