Add pwenv utility
This commit is contained in:
parent
c7fe5b2499
commit
d25dd29b65
1 changed files with 7 additions and 0 deletions
7
bin/pwenv
Executable file
7
bin/pwenv
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
var="$1"
|
||||
shift
|
||||
|
||||
exec env ${var}=$(systemd-ask-password --accept-cached --keyname="pwenv.${var}" "${var}: ") "$@"
|
Loading…
Reference in a new issue