added failglob and LC_ALL
This commit is contained in:
parent
88b0833a27
commit
5adf91302a
10 changed files with 33 additions and 10 deletions
2
battery
2
battery
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# docstring=just shows the current capacity
|
||||
set -E -o pipefail
|
||||
shopt -s failglob
|
||||
export LC_ALL=C.UTF8
|
||||
|
||||
cat /sys/class/power_supply/BAT0/capacity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue