mirror of
https://github.com/kevinveenbirkenbach/physical-interface.git
synced 2024-11-14 06:11:04 +01:00
Optimized compile script
This commit is contained in:
parent
562f510e82
commit
8480f109d9
@ -4,6 +4,7 @@
|
||||
|
||||
# set variables
|
||||
ARDUINO_PATH="/bin/arduino";
|
||||
MAIN_FILE="$(dirname "$(readlink -f "${0}")")/../main/main.ino"
|
||||
|
||||
# test preconditions
|
||||
if [ ! -f "$ARDUINO_PATH" ]
|
||||
@ -13,4 +14,5 @@ then
|
||||
echo "https://askubuntu.com/questions/1025753/how-to-install-latest-arduino-ide"
|
||||
exit 1;
|
||||
fi
|
||||
bash "$ARDUINO_PATH" --upload ../main/main.ino
|
||||
echo "Compiling $MAIN_FILE..."
|
||||
bash "$ARDUINO_PATH" --upload "$MAIN_FILE"
|
||||
|
Loading…
Reference in New Issue
Block a user