The-Powder-Toy/.github/starcatcher-publish.sh
2021-04-05 00:09:52 +02:00

6 lines
344 B
Bash
Executable File

#!/bin/sh
cd "$STARCATCHER_PUBLISH_FILENAME"
mv "$1" "$STARCATCHER_PUBLISH_FILENAME"
LFTP_PASSWORD=$STARCATCHER_PUBLISH_PASSWORD lftp -c "open --user '$STARCATCHER_PUBLISH_USERNAME' --env-password -e 'set ftp:ssl-protect-data true; set ssl:verify-certificate false; put \"$STARCATCHER_PUBLISH_FILENAME\";' ftp://$STARCATCHER_PUBLISH_HOSTPORT"