We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917de84 commit 4563568Copy full SHA for 4563568
load
@@ -21,6 +21,10 @@ function load() {
21
-a 0x0031 \
22
-b "$mac_address" \
23
--char-write-req 1>/dev/null
24
+ if [[ $? != 0 ]]; then
25
+ echo "Error uploading."
26
+ exit 1
27
+ fi
28
((counter++))
29
percentage="$(bc <<< "scale=2; (${counter}/${lines})*100")"
30
progress_bar "${percentage%.*}"
@@ -34,7 +38,7 @@ elif ! [[ -r $file && -f $file ]]; then
34
38
error="No such file!"
35
39
else
36
40
load
37
- exit
41
+ exit 0
42
fi
43
44
cat <<- EOH
@@ -45,3 +49,5 @@ cat <<- EOH
45
49
This tool will upload the file to the BlueBasic device that has that MAC address
46
50
Need gatttool installed
47
51
EOH
52
+
53
+exit 1
0 commit comments