Add pwenv utility

This commit is contained in:
Daniel Lundin 2019-09-04 15:05:10 +02:00
parent c7fe5b2499
commit d25dd29b65

7
bin/pwenv Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
set -eu
var="$1"
shift
exec env ${var}=$(systemd-ask-password --accept-cached --keyname="pwenv.${var}" "${var}: ") "$@"