mirror of
https://github.com/jb55/nostril.git
synced 2025-08-11 19:10:46 -04:00
.github
deps
devtools
doc
scripts
git-send-nostr
nostril-post
nostril-relay
.envrc
.gitignore
.gitmodules
CHANGELOG
COPYING
Makefile
README.md
aes.c
aes.h
base64.c
base64.h
compiler.h
configurator.c
cursor.h
default.nix
endian.h
hex.h
nostril-query
nostril.c
proof.h
random.h
sha256.c
sha256.h
shell.nix
18 lines
523 B
Bash
Executable File
18 lines
523 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
relays=${NOSTR_RELAYS:-$(git config nostr.relays)}
|
|
relayer=${NOSTR_RELAYER:-nostcat}
|
|
to_stdout=0
|
|
|
|
if ! command -v $relayer; then
|
|
printf "nostr relayer '%s' not found. Please install or set NOSTR_RELAYER to your preferred relayer.\n" "$relayer"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$relays" == "" ]; then
|
|
printf 'no relays set. set\n\n export NOSTR_RELAYS="wss://relay1.com wss://relay2.com ..." or\n\n git config --global --add nostr.relays "wss://relay1.com wss://relay2.com"\n' >&2
|
|
exit 1
|
|
fi
|
|
|
|
$relayer $relays
|