From ba7ef3fdba9d078c509ac4fffa2ac5f57d9996c5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 26 Aug 2023 00:03:00 +0300 Subject: send-package: Do ‘$TO’ in systemd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/send-package | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin') 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" -- cgit v1.2.3