Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat] DNS Record can be automatically created, without manual record…
… creation in advanced. (#6) * [Feat] Record auto-creation implementation If script detects given record name has not been created, it will automatically POST to cf v4 api to create, then prompt the user. Tests should follow. * [Bug] Minor Typo on function create4RecordIfNotExists Provide `hostIp` as param for function create4RecordIfNotExists. Solved. * [Enhancement] Code Clean-up and Follow google shell style. Info and error message are both handled by shell functions, rather than echo everywhere and pipes it to stderr. Global variables were renamed following STYLE_GUIDELINE. Function variables were renamed following snake_case. Other code clean-ups, and guideline following. * [Bug,Enhancement] Typo causes NULL var Fix where GLOBAL_VARIABLES' names alterd in `cloudflare-ddns` but stay the same in `cfddns.sh`, which leads to NULL var. if statements use `[[]]` instead of `[]`. * [Bug] Record update will occur when HostIp==RecordIp fixed. * [Doc,Enhancement] Function comment & file header updated. Some variables were declared `readonly` for more development-friendly design. Function comment and documentation links updated. `set -o errexit` added. * [Bug,Doc] `errexit` results in unexpected exit. Removal of `set -e`, which is short for `set -o errexit`. Comment & Documentation updated.
- Loading branch information