Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MessdatenSilo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Kloock
MessdatenSilo
Commits
7a3a521b
Commit
7a3a521b
authored
3 years ago
by
Lennard
Browse files
Options
Downloads
Patches
Plain Diff
Fix #2
parent
f94cc8e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/write.bash
+15
-5
15 additions, 5 deletions
scripts/write.bash
with
15 additions
and
5 deletions
scripts/write.bash
+
15
−
5
View file @
7a3a521b
...
...
@@ -28,7 +28,17 @@ core_list_installed=$(echo -e $core_list | grep "^$core")
if
[[
-z
$core_list_installed
]]
then
echo
-e
"
\x
1b[33mWarning: Core
$core
for board
$fqbn
is not installed.
\x
1b[0m
\n
Installing..."
echo
-e
"
\x
1b[33mWarning: Core
$core
for board
$fqbn
is not installed.
\x
1b[0m"
while
true
;
do
read
-p
"Would you like to install the core? [Y/n]: "
yn
case
$yn
in
[
Yy]
*
)
break
;;
[
Nn]
*
)
echo
"Aborted"
;
exit
1
;;
esac
done
echo
-e
"Installing..."
arduino-cli core
install
$core
...
...
@@ -49,7 +59,7 @@ echo "Compiling sketches..."
compile
=
$(
arduino-cli compile
--fqbn
$fqbn
DmsMessung
)
if
[[
$?
-gt
0
]]
then
echo
-e
"
\x
1b[31mError:
c
ompilation of DmsMessung failed:
\x
1b[0m"
echo
-e
"
\x
1b[31mError:
C
ompilation of DmsMessung failed:
\x
1b[0m"
echo
-e
"
$compile
"
echo
-e
"Exiting."
exit
1
...
...
@@ -58,7 +68,7 @@ fi
compile
=
$(
arduino-cli compile
--fqbn
$fqbn
Temperaturmessung
)
if
[[
$?
-gt
0
]]
then
echo
-e
"
\x
1b[31mError:
c
ompilation of Temperaturmessung failed:
\x
1b[0m"
echo
-e
"
\x
1b[31mError:
C
ompilation of Temperaturmessung failed:
\x
1b[0m"
echo
-e
"
$compile
"
echo
-e
"Exiting."
exit
1
...
...
@@ -69,7 +79,7 @@ echo "Uploading sketches..."
upload
=
$(
arduino-cli upload
-p
$serial_dms
--fqbn
$fqbn
DmsMessung
)
if
[[
$?
-gt
0
]]
then
echo
-e
"
\x
1b[31mError:
u
pload of DmsMessung failed:
\x
1b[0m"
echo
-e
"
\x
1b[31mError:
U
pload of DmsMessung failed:
\x
1b[0m"
echo
-e
"
$upload
"
echo
-e
"Exiting."
exit
1
...
...
@@ -78,7 +88,7 @@ fi
upload
=
$(
arduino-cli upload
-p
$serial_temp
--fqbn
$fqbn
Temperaturmessung
)
if
[[
$?
-gt
0
]]
then
echo
-e
"
\x
1b[31mError:
u
pload of Temperaturmessung failed:
\x
1b[0m"
echo
-e
"
\x
1b[31mError:
U
pload of Temperaturmessung failed:
\x
1b[0m"
echo
-e
"
$upload
"
echo
-e
"Exiting."
exit
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment