From 94b40ccc6e4a49812c37f29d4e8ee09b93c7064a Mon Sep 17 00:00:00 2001 From: Nicolai Bjerre Pedersen Date: Thu, 8 Mar 2018 20:50:49 +0100 Subject: [PATCH] Added changelog section to README --- README.md | 17 +++++++++++++++++ remote-backup/run.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 607d7a4..c7ad40b 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ * [Installation](#installation) * [Configuration](#configuration) * [Example](#example) +* [Changelog & Releases](#changelog) * [Docker status](#docker) ## About @@ -85,6 +86,19 @@ _Add-on configuration_: **Note**: _This is just an example, don't copy and past it! Create your own!_ +## < name='changelog'>Changelog & Releases + +This repository keeps a [change log](CHANGELOG.md). The format of the log +is based on [Keep a Changelog][keepchangelog]. + +Releases are based on [Semantic Versioning][semver], and use the format +of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented +based on the following: + +- ``MAJOR``: Incompatible or major changes. +- ``MINOR``: Backwards-compatible new features and enhancements. +- ``PATCH``: Backwards-compatible bugfixes and package updates. + ## Docker status @@ -140,4 +154,7 @@ _Add-on configuration_: [travis-build]: https://travis-ci.org/mr-bjerre/hassio-remote-backup [travis-build-shield]: https://travis-ci.org/mr-bjerre/hassio-remote-backup.svg?branch=master +[keepchangelog]: http://keepachangelog.com/en/1.0.0/ +[semver]: http://semver.org/spec/v2.0.0.html + [hassio-addons]: https://github.com/mr-bjerre/hassio-addons diff --git a/remote-backup/run.sh b/remote-backup/run.sh index 54f53a3..1aa5007 100755 --- a/remote-backup/run.sh +++ b/remote-backup/run.sh @@ -36,7 +36,7 @@ function add-ssh-key { function copy-backup-to-remote { cd /backup/ - if [ "$ZIP_PASSWORD" == "" ]; then + if [[ ! $ZIP_PASSWORD ]]; then echo "Copying ${slug}.tar to ${REMOTE_DIRECTORY} on ${SSH_HOST} using SCP" scp -F "${HOME}/.ssh/config" "${slug}.tar" remote:"${REMOTE_DIRECTORY}" else