summaryrefslogtreecommitdiff
path: root/.local/bin/send-package
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-06 20:58:18 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-06 20:58:47 +0100
commitdb7321af115a79b63267cb18889cbd334e8ca6e2 (patch)
treeec388295051ebc1f3d79bd3baf79b7f12f076cda /.local/bin/send-package
parentf2fde1570a04a654e2ed0c165d56feb29ddb25bf (diff)
scripts: Move many a script from sh to andy
Diffstat (limited to '.local/bin/send-package')
-rwxr-xr-x.local/bin/send-package12
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/bin/send-package b/.local/bin/send-package
index bcd7eb0..453a148 100755
--- a/.local/bin/send-package
+++ b/.local/bin/send-package
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/usr/local/bin/andy
# Why not?
-readonly tmpl="${XDG_DATA_HOME:-$HOME/.local/share}/send-package/template"
+set 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 \
-| tr A-Z a-z \
-| xargs -I{} -- sed 's/$REPLACEME/{}/' "$tmpl" \
+sed -En '/^Angel Cakes/,/^Doozies/s/(\t|\s{2,})/\n/gp' ~/doc/tit-names
+| shuf -n1
+| tr A-Z a-z
+| xargs -I{} -- sed 's/$REPLACEME/{}/' $tmpl
| smail