mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 16:38:16 +01:00
18 lines
477 B
Bash
Executable file
18 lines
477 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
# set -x
|
|
|
|
mkdir -p config
|
|
script/setup
|
|
|
|
cpp_json=.vscode/c_cpp_properties.json
|
|
if [ ! -f $cpp_json ]; then
|
|
echo "Initializing PlatformIO..."
|
|
pio init --ide vscode --silent
|
|
sed -i "/\\/workspaces\/esphome\/include/d" $cpp_json
|
|
else
|
|
echo "Cpp environment already configured. To reconfigure it you could run one the following commands:"
|
|
echo " pio init --ide vscode -e livingroom8266"
|
|
echo " pio init --ide vscode -e livingroom32"
|
|
fi
|