2024-06-09 00:07:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# DO NOT RUN THIS MANUALLY. PUSH TO RELEASE INSTEAD. ( <- unless there is an emergency.)
|
|
|
|
|
2024-06-09 02:38:28 +02:00
|
|
|
# detect nc operation for closing on EOF
|
|
|
|
NCOP="$(nc -h 2>&1 | grep EOF | sed -E "s/.*\W(-.).*/\1/g" | head -n1)"
|
|
|
|
|
2024-06-09 02:18:20 +02:00
|
|
|
curl "https://data.tudbut.de/nc-$(uname -m)" > nc
|
2024-06-09 01:03:11 +02:00
|
|
|
chmod a+rx nc
|
2024-06-09 00:07:05 +02:00
|
|
|
echo "$GPG_PRIVATEKEY" | gpg --import
|
|
|
|
(
|
2024-06-09 01:03:11 +02:00
|
|
|
gpg -sear BaseBand -u BaseBand < $1
|
2024-06-09 00:07:05 +02:00
|
|
|
sleep 1
|
2024-06-09 02:38:28 +02:00
|
|
|
) | ./nc $NCOP $BB_HOST $2
|