commit 2fe53dd289fe8655184dac22d4727847bacc5c72
parent d0e9610236839c423aaba002314c9faef86699d8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 24 Jan 2020 17:44:17 +0100
Fix multiline input via stdin
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/sendtext b/.local/bin/sendtext
@@ -70,7 +70,7 @@ if [ $# -lt 1 ]; then
fi
authstring="$(pass Online/twilio-account-sid):$(pass Online/twilio-auth-token)"
-read -r message
+message="$(cat)"
for r in "$@"; do
send_twilio_text "$(pass Telephone/$r)"
done