pkgs/clerie-sops: Write config to temp file as sops can't read config from pipe
This commit is contained in:
parent
e125d5d3bf
commit
e9695286b6
@ -11,6 +11,8 @@ pkgs.writeShellApplication {
|
||||
if GIT_ROOT=$(git rev-parse --show-toplevel); then
|
||||
REPO_ROOT="$GIT_ROOT"
|
||||
fi
|
||||
exec sops --config <(clerie-sops-config "$REPO_ROOT") "$@"
|
||||
CONFIG_FILE="$(mktemp)"
|
||||
clerie-sops-config "$REPO_ROOT" > "$CONFIG_FILE"
|
||||
exec sops --config "$CONFIG_FILE" "$@"
|
||||
'';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user