summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-26 00:03:00 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-26 00:03:00 +0300
commitba7ef3fdba9d078c509ac4fffa2ac5f57d9996c5 (patch)
tree51c517154e31f821ef0808da0f2b4361c034e33e /.local/bin
parent1087289fd0cfdd5ada7954c3fa4284228e45cd05 (diff)
send-package: Do ‘$TO’ in systemd
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/send-package4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/send-package b/.local/bin/send-package
index 4c6538b..f51b6f3 100755
--- a/.local/bin/send-package
+++ b/.local/bin/send-package
@@ -6,5 +6,5 @@ readonly tmpl="${XDG_DATA_HOME:-$HOME/.local/share}/send-package/template"
sed -En '/^Angel Cakes/,/^Doozies/s/(\t|\s{2,})/\n/gp' ~/doc/tit-names \
| shuf -n1 \
- | xargs -I{} -- sed -e 's/$REPLACEME/{}/' -e "s/\$TO/$TO/" "$tmpl"
- | msmtp -t --read-envelope-from
+ | xargs -I{} -- sed 's/$REPLACEME/{}/' "$tmpl" \
+ | msmtp --read-envelope-from "$TO"