fix: correct to inherit_errexit in hledger-bar
I misread something and apparently whatever test I used didn't fail because what's there now is not valid at all.
This commit is contained in:
parent
f706bd2765
commit
4c15cfb275
@ -124,7 +124,7 @@ EOS
|
||||
${cmd} | while IFS=, read -r period amount; do
|
||||
if [[ ! ${amount} =~ [0-9] ]]; then continue; fi # ignore lines where amount has no digits
|
||||
if [[ ${amount} =~ , ]]; then printamterr "${amount}"; exit 1; fi # check there is a single amount column
|
||||
set -o inherit_exit
|
||||
shopt -s inherit_errexit
|
||||
int=$(printf '%.f' "$(unquote "${amount}")")
|
||||
if [[ ${shownum} -gt 0 ]]; then num=$(printf "%10d " "${int}"); else num=""; fi
|
||||
if [[ ${int} -lt 0 ]]; then c="${negchar}"; col=${red}; else c="${poschar}"; col=${green}; fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user