mv "${TMPDIR}/usr/local/etc/config/crRFD/*" does not expand the glob and fails.
Due to the previous change we also ignored the globbing error.
Let's clean the directory up, copy from the source and avoid globbing errors.
By doing it this way we can also drop the ugly "|| true".
The recent backup fix introduced another error:
mv complains about us trying to move a folder into its own subfolder.
The script then aborts due to set -e. By ignoring the exit code of mv here
we get the desired result (complete backup and no error in ui)
* added first version of createBackup.sh for homematic addon
* move bin directory to opt/hm
* debug
* debug
* minor cleanup change.
* added a patched version of cp_security.cgi to support direct WebUI based
backup creation+download.
* minor fix
* minor fix
* version bump and removal of subsystem=tty filter for device spec
* added changed to CHANGELOG.md
* Added retirement notification
* Update README.md
* Update DOCS.md
* Update CHANGELOG.md
* fixed shellcheck errors.
* Update homematic/CHANGELOG.md
* Update homematic/config.yaml
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>