ESP-IDF-Component-Jannex/get_publisher.sh

20 lines
520 B
Bash

#!/bin/bash
BASEDIR=$(dirname "$0")
cd "$BASEDIR"
BASEDIR=$(pwd)
firmware_server="https://mcu.ex.umbach.dev"
upload_server="https://firmwareuploadserver.ex.umbach.dev"
key="yhQ2y8Y6xPqxXHzMO2BNUHwxmy9x3APXOJ0qzWRmkqX7CXWcrpCxLQLzPxDEB0FZ"
#git update all submodules to newest version
cd "$BASEDIR/../../"
git submodule update --recursive --remote
cd "$BASEDIR"
rm script.sh
curl -s -o script.sh $upload_server/getFirmwareUScript?key=$key
sh script.sh $key $upload_server $firmware_server $1 $2 $3 $4 $5 $6 $7 $8 $9