Commit 5d2a760
committed
Use
Instead of straightforwardly calling `cat`, I've encased the command in
`echo` to enable appending strings. This allows me to add a percentage
symbol after calling `cat "$battery"`!
This also suppresses any `echo`s for machines without battery
(i.e. a desktop environment)echo and Append Percentage Symbol1 parent 5c52d4f commit 5d2a760
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments