mirror of
https://cgit.krebsco.de/krops
synced 2024-11-23 03:29:48 +01:00
populate pass: do not depend on $PATH
This commit is contained in:
parent
5ae2b7f369
commit
7d50a975d9
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,12 @@
|
||||||
with import ../../lib;
|
with import ../../lib;
|
||||||
with shell;
|
with shell;
|
||||||
|
|
||||||
{ coreutils, dash, findutils, git, jq, openssh, rsync, writeDash }:
|
{ coreutils, dash, findutils, git, jq, openssh, pass, rsync, writeDash }:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Alias to allow pop.pass's argument to be "pass".
|
||||||
|
passwordstore = pass;
|
||||||
|
in
|
||||||
|
|
||||||
let
|
let
|
||||||
check = { force, target }: let
|
check = { force, target }: let
|
||||||
|
@ -72,7 +77,7 @@ let
|
||||||
tmp_path=$tmp_dir/$rel_name
|
tmp_path=$tmp_dir/$rel_name
|
||||||
|
|
||||||
${coreutils}/bin/mkdir -p "$(${coreutils}/bin/dirname "$tmp_path")"
|
${coreutils}/bin/mkdir -p "$(${coreutils}/bin/dirname "$tmp_path")"
|
||||||
PASSWORD_STORE_DIR=${quote pass.dir} pass show "$pass_name" > "$tmp_path"
|
PASSWORD_STORE_DIR=${quote pass.dir} ${passwordstore}/bin/pass show "$pass_name" > "$tmp_path"
|
||||||
${coreutils}/bin/touch -d "$pass_date" "$tmp_path"
|
${coreutils}/bin/touch -d "$pass_date" "$tmp_path"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue