pash: better heredoc syntax. Closes #13
This commit is contained in:
parent
79b5513440
commit
0fbd3c5be7
4
pash
4
pash
|
@ -47,10 +47,10 @@ pw_add() {
|
|||
# Heredocs are sometimes implemented via temporary files,
|
||||
# however this is typically done using 'mkstemp()' which
|
||||
# is more secure than '/proc'.
|
||||
"$gpg" "$@" -o "$name.gpg" <<-EOF && \
|
||||
printf '%s\n' "Saved '$name' to the store."
|
||||
"$gpg" "$@" -o "$name.gpg" <<-EOF &&
|
||||
$pass
|
||||
EOF
|
||||
printf '%s\n' "Saved '$name' to the store."
|
||||
}
|
||||
|
||||
pw_del() {
|
||||
|
|
Loading…
Reference in New Issue