initial version
continuous-integration/drone Build is failing Details

This commit is contained in:
Alexander Lehmann 2023-09-30 16:05:08 +02:00
parent ab89d50b13
commit ee3f06d78a
4 changed files with 54 additions and 1 deletions

10
.drone.yml Normal file
View File

@ -0,0 +1,10 @@
---
kind: pipeline
name: shellcheck
steps:
- name: shellcheck
image: koalaman/shellcheck-alpine:stable
commands:
- shellcheck backup_cosmicvoyage

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.pem

View File

@ -1,3 +1,7 @@
# misfin-shell
small wrapper script to send messages to misfin using openssl
small wrapper script to send messages to misfin using openssl
usage example
./misfin.sh alexlehm@gemini.lehmann.cx Test message

38
misfin.sh Executable file
View File

@ -0,0 +1,38 @@
#! /bin/sh
#
# small misfin test client to debug a server
#
# usage: misfin.sh user@host message
#
# e.g. misfin.sh alexlehm@gemini.lehmann.cx Testmessage
#
# tildegit.org/alexlehm/misfin-shell
#
# change as necessary
PORT=1958
KEY=alexlehm.pem
if [ $# = 0 ]
then
echo "error"
exit
fi
USER=$1
shift
HOST=`echo $USER|sed 's/.*@//'`
if [ $PORT != 1958 ]
then
HOSTPORT=$HOST:$PORT
else
HOSTPORT=$HOST
fi
PROXY=
#PROXY=-proxy localhost:8118
echo "misfin://$USER $*\r" | openssl s_client -cert $KEY -quiet $PROXY -connect $HOST:$PORT