fix netcat saying invalid argument on some machines
This commit is contained in:
parent
dcd4791c88
commit
634074cc65
1 changed files with 4 additions and 1 deletions
|
@ -2,10 +2,13 @@
|
|||
|
||||
# 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)"
|
||||
|
||||
curl "https://data.tudbut.de/nc-$(uname -m)" > nc
|
||||
chmod a+rx nc
|
||||
echo "$GPG_PRIVATEKEY" | gpg --import
|
||||
(
|
||||
gpg -sear BaseBand -u BaseBand < $1
|
||||
sleep 1
|
||||
) | ./nc -c $BB_HOST $2
|
||||
) | ./nc $NCOP $BB_HOST $2
|
Loading…
Add table
Reference in a new issue