Add debug logging to build.sh
This commit is contained in:
parent
920eede267
commit
b094097966
6
build.sh
6
build.sh
|
@ -5,6 +5,8 @@ apt-get -y install git
|
||||||
|
|
||||||
base_dir=$(pwd)
|
base_dir=$(pwd)
|
||||||
|
|
||||||
|
echo "Cloning Tasmota"
|
||||||
|
|
||||||
git clone https://github.com/arendst/Tasmota.git /tasmota
|
git clone https://github.com/arendst/Tasmota.git /tasmota
|
||||||
|
|
||||||
cd /tasmota
|
cd /tasmota
|
||||||
|
@ -13,9 +15,13 @@ if [ -z "$TASMOTA_VERSION" ]; then
|
||||||
TASMOTA_VERSION=$(wget -qO - https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oP 'tag_name"\s*:\s*"\K[^"]+')
|
TASMOTA_VERSION=$(wget -qO - https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oP 'tag_name"\s*:\s*"\K[^"]+')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Checking out version $TASMOTA_VERSION"
|
||||||
|
|
||||||
git checkout $TASMOTA_VERSION
|
git checkout $TASMOTA_VERSION
|
||||||
|
|
||||||
|
echo "Setting up config override"
|
||||||
rm -f /tasmota/tasmota/user_config_override.h
|
rm -f /tasmota/tasmota/user_config_override.h
|
||||||
cp $base_dir/user_config_override.h /tasmota/tasmota/user_config_override.h
|
cp $base_dir/user_config_override.h /tasmota/tasmota/user_config_override.h
|
||||||
|
|
||||||
|
echo "Building using PlatformIO"
|
||||||
pio run -e tasmota
|
pio run -e tasmota
|
Loading…
Reference in New Issue