diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 408ee1700c383ca0e1e1e617cd8da4bf9d2dac01..a1bf2e3625f55615a65ceebc8034719b288bac81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: codespell args: - - '-L=doas,fo' + - '-L=doas,fo,anull' - repo: https://github.com/Yelp/detect-secrets.git rev: v1.5.0 diff --git a/Ansible/roles/debian_server/files/dvb b/Ansible/roles/debian_server/files/dvb index 00d0ed59b3b7e4802c93371bcb46a7c304fc0c27..688e27d977a5cc5df7b16145973bbbd9c83873b5 100755 --- a/Ansible/roles/debian_server/files/dvb +++ b/Ansible/roles/debian_server/files/dvb @@ -28,7 +28,7 @@ then usage elif [ ! -d "$1" ] then - echo "Destinaton $1 not found or is not a directory." >&2 + echo "Destination $1 not found or is not a directory." >&2 exit 1 elif [ "$(id -u)" -ne 0 ] then @@ -70,7 +70,7 @@ for name in $(docker volume ls --filter label=snapshot=true --format '{{ .Name } do echo "Backing up $name." mountpoint="$(docker volume inspect --format '{{ .Mountpoint }}' "$name")" - src="$snapshot/${mountpoint#$root_volume/}" + src="$snapshot/${mountpoint#"$root_volume"/}" # shellcheck disable=SC2115 [ ! -e "$dest/$name" ] || rm -rf "$dest/$name" cp --archive --force --reflink=always "$src" "$dest/$name" diff --git a/Ansible/roles/debian_server/files/offsite-backup b/Ansible/roles/debian_server/files/offsite-backup index 1534ed5a20d0907f63e547e8a5f458f83da097b8..f4273dba582f3149ffa036e446c1ef0576eb4dd6 100755 --- a/Ansible/roles/debian_server/files/offsite-backup +++ b/Ansible/roles/debian_server/files/offsite-backup @@ -52,7 +52,7 @@ volume="$(root_subvolume /var/backups)" snapshot="$(mktemp --dry-run "--tmpdir=$volume")" btrfs subvolume snapshot -r "$volume" "$snapshot" source="/var/backups" -source="${snapshot}${source#$volume}/" +source="${snapshot}${source#"$volume"}/" sync --file-system /var/backups rsync --archive \