главная|main page

состояние|status

блог|blog

файлы|files

программы|software

summaryrefslogtreecommitdiff
path: root/echoz.sh
diff options
context:
space:
mode:
authorJonas Wielicki <j.wielicki@sotecware.net>2018-04-20 12:44:51 +0200
committerJonas Wielicki <j.wielicki@sotecware.net>2018-04-20 12:44:51 +0200
commitcd9e2637b8da611d1023e02de5d981de3af8e532 (patch)
tree51dad843e692ea4c3ed2733bcfe8cd02487b915a /echoz.sh
parente3550e83216719cca2e57a350be24ac15ecc9e54 (diff)
Fix potenial whitespace issue
Diffstat (limited to 'echoz.sh')
-rwxr-xr-xechoz.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/echoz.sh b/echoz.sh
index 2aff537..643c45e 100755
--- a/echoz.sh
+++ b/echoz.sh
@@ -1,6 +1,6 @@
#!/bin/bash
set -euf
-thisdir=$(dirname $0)
+thisdir="$(dirname $0)"
pipename="${XDG_RUNTIME_DIR:-/tmp}/echoz-$$.pipe"
jid="$1"
password="$2"
@@ -12,4 +12,4 @@ port="$(echo "$srv" | cut -d' ' -f3)"
authstr="$(echo -ne "\0$username\0$password" | base64)"
rm -f $pipename
mkfifo $pipename
-stdbuf -i0 -o0 openssl s_client -starttls xmpp -xmpphost $domain -connect $host:$port -quiet < $pipename | (echo -ne "$jid $authstr\n"; stdbuf -o0 tr '>\n' '\n\001') | stdbuf -o0 $thisdir/echoz.sed | stdbuf -o0 tr -d '\n' | stdbuf -o0 tr '\001' '\n' > $pipename
+stdbuf -i0 -o0 openssl s_client -starttls xmpp -xmpphost $domain -connect $host:$port -quiet < $pipename | (echo -ne "$jid $authstr\n"; stdbuf -o0 tr '>\n' '\n\001') | stdbuf -o0 "$thisdir/echoz.sed" | stdbuf -o0 tr -d '\n' | stdbuf -o0 tr '\001' '\n' > $pipename