This commit is contained in:
2020-12-12 14:43:22 +01:00
parent c02abb516c
commit a91d1225d9
2 changed files with 7 additions and 3 deletions

2
bp.sh
View File

@@ -5,5 +5,5 @@ GPG_ARGS="$([ ! -z "$BROWNPAPER_KEY" ] && echo "--local-user $BROWNPAPER_KEY")"
if [ ! -z "$1" ]; then
printf "$1" | gpg --sign -a $GPG_ARGS | curl -s --data @- -X POST $BP_ENDPOINT/new -Ls $CURL_ARGS
else
gpg --sign -a $GPG_ARGS | curl -s --data @- -X POST $BROWNPAPER_ENDPOINT/new -Ls $CURL_ARGS
gpg --sign -a $GPG_ARGS | curl -s --data @- -X POST $BP_ENDPOINT/new -Ls $CURL_ARGS
fi