Commit 1891b17
committed
Check Battery Existence before Calling and Printing Content
This ensures that the script does not return errors when operating in
environments without batteries, as if there are no battery-related files
in the target directory, the script now stops from accessing the files
to begin with.1 parent 5d2a760 commit 1891b17
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
0 commit comments