mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
enable shellcheck
This commit is contained in:
parent
7b60015dd5
commit
a33e8cc43f
4 changed files with 5 additions and 1 deletions
1
.envrc
1
.envrc
|
|
@ -1 +1,2 @@
|
|||
# shellcheck shell=bash
|
||||
use flake
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ inputs.treefmt-nix.lib.evalModule pkgs {
|
|||
|
||||
deadnix.enable = true;
|
||||
deno.enable = true;
|
||||
shellcheck.enable = true;
|
||||
};
|
||||
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue