Use a temporary file host to deliver the patch over XMPP

Signed-off-by: Aoi K <koizumi.aoi@kyoko-project.wer.ee>
このコミットが含まれているのは:
Aoi K 2022-11-22 17:52:58 -03:00
コミット 32961b5cc0
1個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -1,5 +1,5 @@
#!/bin/sh
# $KyokoNet: git-send-xmpp, v0.0.2 2022/11/13 22:14:55 akoizumi Exp $
# $KyokoNet: git-send-xmpp, v0.0.3, 2022/11/22 17:48:03 akoizumi Exp $
#
# Send git patches over the XMPP protocol
# https://git.kyoko-project.wer.ee/koizumi.aoi/git-crap
@ -29,5 +29,5 @@ if [ -z $pass && -z $user && -z $target && -z $diff ]; then
exit 1
else
printf "Sending patch file %s to recipient %s over XMPP\n" "${diff}" "${target}"
cat $diff | xmppc --jid ${user} --pwd ${pass} -m message chat ${target}
xmppc --jid ${user} --pwd ${pass} -m message chat ${target} "$(curl -sF file=@$diff https://ttm.sh)"
fi