BaseBandRewrite/scripts/push_file.sh.old
TudbuT b72baefd53
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m27s
/ Build BaseBand Installer (push) Successful in 1m11s
/ Build BaseBand Loader (push) Successful in 1m37s
/ Build BaseBand Server (push) Successful in 1m31s
move scripts
2024-06-12 09:49:58 +02:00

15 lines
420 B
Bash

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