Address linter issues

This commit is contained in:
Erik Westrup
2022-02-08 17:33:24 +01:00
parent 78f5cb7b62
commit e0139ff9c8
3 changed files with 7 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
# systemctl enable restic-backup@<profile>.timer
```
- **BREAKING CHANGE** moved script installation with makefile from `/usr/local/sbin` to `/bin` to have a simpler interface to work with `$PREFIX`.
- **BREAKING CHANGE** renamed `etc/restic/*.env` files to `etc/restic/*.env.sh` to clearly communicate that it's a shell script that will be executed (source), and also hint at code editors what file this is to set corect syntax highligting etc.
- **BREAKING CHANGE** renamed `etc/restic/*.env` files to `etc/restic/*.env.sh` to clearly communicate that it's a shell script that will be executed (source), and also hint at code editors what file this is to set corect syntax highligting etc. This also enables the shellcheck linter to work more easily on these files as well.
- Renamed top level make install targets. The old `$ make install` is now `$ make install-systemd`
### Fixed

View File

@@ -1,3 +1,5 @@
# shellcheck shell=sh
# Global envionment variables
# These variables are sourced FIRST, and any values inside of *.env.sh files for
# specific configurations will override if also defined there.

View File

@@ -1,3 +1,5 @@
# shellcheck shell=sh
# This is the default profile. Fill it with your desired configuration.
# Additionally, you can create and use more profiles by copying this file.
@@ -9,7 +11,8 @@
# Thus you don't have to provide all the arguments like
# $ restic --repo ... --password-file ...
source $INSTALL_PREFIX/etc/restic/_global.env.sh
# shellcheck source=etc/restic/_global.env.sh
. "$INSTALL_PREFIX/etc/restic/_global.env.sh"
# Below envvar will override those in _global.env.sh