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,
|
# Heredocs are sometimes implemented via temporary files,
|
||||||
# however this is typically done using 'mkstemp()' which
|
# however this is typically done using 'mkstemp()' which
|
||||||
# is more secure than '/proc'.
|
# is more secure than '/proc'.
|
||||||
"$gpg" "$@" -o "$name.gpg" <<-EOF && \
|
"$gpg" "$@" -o "$name.gpg" <<-EOF &&
|
||||||
printf '%s\n' "Saved '$name' to the store."
|
|
||||||
$pass
|
$pass
|
||||||
EOF
|
EOF
|
||||||
|
printf '%s\n' "Saved '$name' to the store."
|
||||||
}
|
}
|
||||||
|
|
||||||
pw_del() {
|
pw_del() {
|
||||||
|
|
Loading…
Reference in New Issue