mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-12 17:39:07 +08:00
Update command.sh
fix typo add echo to know the status
This commit is contained in:
parent
7471746ad7
commit
e04df757e6
11
command.sh
11
command.sh
@ -9,17 +9,22 @@ function build_sketch()
|
|||||||
local auth=$5
|
local auth=$5
|
||||||
if [[ "$3" == "arduino" ]];
|
if [[ "$3" == "arduino" ]];
|
||||||
then
|
then
|
||||||
|
echo "Setup for Arduino"
|
||||||
rm -f $HOME/.arduino15/preferences.txt
|
rm -f $HOME/.arduino15/preferences.txt
|
||||||
#be sure everything is enabled by default as reference
|
#be sure everything is enabled by default as reference
|
||||||
|
echo "Authentication is enabled"
|
||||||
sed -i "s/\/\/#define AUTHENTICATION_FEATURE /#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
sed -i "s/\/\/#define AUTHENTICATION_FEATURE /#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
||||||
sed -i "s/\/\/#define BLUETOOTH_FEATURE /#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
echo "Bluetooth is enabled"
|
||||||
|
sed -i "s/\/\/#define BLUETOOTH_FEATURE /#define BLUETOOTH_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
||||||
if [[ "$4" == "no" ]];
|
if [[ "$4" == "no" ]];
|
||||||
then
|
then
|
||||||
sed -i "s/#define AUTHENTICATION_FEATURE /\/\/#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
echo "Disable Bluetooth"
|
||||||
|
sed -i "s/#define BLUETOOTH_FEATURE /\/\/#define BLUETOOTH_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
||||||
fi
|
fi
|
||||||
if [[ "$5" == "no" ]];
|
if [[ "$5" == "no" ]];
|
||||||
then
|
then
|
||||||
sed -i "s/#define BLUETOOTH_FEATURE /\/\/#define BLUETOOTH_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
echo "Disable Authentication"
|
||||||
|
sed -i "s/#define AUTHENTICATION_FEATURE /\/\/#define AUTHENTICATION_FEATURE/g" $TRAVIS_BUILD_DIR/esp3d/configuration.h
|
||||||
fi
|
fi
|
||||||
if [[ "$2" == "esp32" ]];
|
if [[ "$2" == "esp32" ]];
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user