Commit Graph

16 Commits (17d3abc90a7d98f3bce4e3527a0ff93f5a192e69)

Author SHA1 Message Date
Justin Reichardt 17d3abc90a Corrected cfgparse return values
Accidentally changed the return value to not return anything ever
2021-12-09 18:06:23 -06:00
Justin Reichardt 1d3f426beb Gracefully exits on failure 2021-12-09 18:02:18 -06:00
Justin Reichardt 49612063d7 Added minimal support for daemon mode 2021-12-09 17:43:39 -06:00
Justin Reichardt b42829d904 Writes temp file to hosts file 2021-12-09 17:03:00 -06:00
Justin Reichardt f356390104 Adds sites to tmp file 2021-12-09 16:55:14 -06:00
Justin Reichardt 9eb4d9d543 Download saves to the same tmp file as everyone 2021-12-09 16:44:09 -06:00
Justin Reichardt 1f9d3faa8b Add a header and trailing new line to downloads
Header allows the reader to know where the additions came from and the
new line makes sure that 2 entries down get jumbled together
2021-12-09 16:37:55 -06:00
Justin Reichardt 6529fe49fd Copies the original content of hosts
Copies it to the tmp file to be copied back later
2021-12-09 16:28:30 -06:00
Justin Reichardt 99b17d68b0 Performs downloads to tmp directory 2021-12-09 16:08:57 -06:00
Justin Reichardt 12e774a3b4 Pass lists of downloads and sites
Main is now passed 2 arrays or strings: downloads and sites
2021-12-09 15:36:45 -06:00
Justin Reichardt 40c6572a81 Moved setting sys params to sysdetect
Cleans up the main function
2021-12-09 15:21:54 -06:00
Justin Reichardt ad1410410b Moved config parsing to a seperate function
This will allow for easier looping later on when this can be run as a
daemon
2021-12-09 15:12:44 -06:00
Justin Reichardt 154bd3dfe8 Parses config file
Parses the config file using cfgparseline
2021-12-09 15:02:58 -06:00
Justin Reichardt 8bfc224d5b Reads the cfg config file to stdout 2021-12-08 14:29:15 -06:00
Justin Reichardt 66ab1732bc Detects the running OS 2021-12-01 14:25:47 -06:00
Justin Reichardt 2a4c78c152 Changing language to go
It is being changed to go in order to practice the language before I
start another project.
2021-12-01 13:56:41 -06:00