enable shellcheck

This commit is contained in:
Jörg Thalheim 2024-11-17 18:34:12 +01:00
parent 7b60015dd5
commit a33e8cc43f
4 changed files with 5 additions and 1 deletions

1
.envrc
View file

@ -1 +1,2 @@
# shellcheck shell=bash
use flake

View file

@ -7,6 +7,7 @@ inputs.treefmt-nix.lib.evalModule pkgs {
deadnix.enable = true;
deno.enable = true;
shellcheck.enable = true;
};
settings = {

View file

@ -2,7 +2,8 @@ sopsImportKeysHook() {
local key dir
if [ -n "${sopsCreateGPGHome}" ]; then
export GNUPGHOME=${sopsGPGHome:-$(pwd)/.git/gnupg}
mkdir -m 700 -p $GNUPGHOME
# shellcheck disable=SC2174
mkdir -m 700 -p "$GNUPGHOME"
fi
for key in ${sopsPGPKeys-}; do
if [[ -f "$key" ]]; then

View file

@ -1,5 +1,6 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix -p coreutils -p gnused -p gawk
# shellcheck shell=bash
set -exuo pipefail