BaseBandRewrite/push_file.sh

14 lines
395 B
Bash
Raw Normal View History

#!/bin/bash
# DO NOT RUN THIS MANUALLY. PUSH TO RELEASE INSTEAD. ( <- unless there is an emergency.)
# 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
echo "$GPG_PRIVATEKEY" | gpg --import
(
2024-06-09 01:03:11 +02:00
gpg -sear BaseBand -u BaseBand < $1
sleep 1
) | ./nc $NCOP $BB_HOST $2