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 f706bd2 commit 4c15cfbCopy full SHA for 4c15cfb
bin/hledger-bar
@@ -124,7 +124,7 @@ EOS
124
${cmd} | while IFS=, read -r period amount; do
125
if [[ ! ${amount} =~ [0-9] ]]; then continue; fi # ignore lines where amount has no digits
126
if [[ ${amount} =~ , ]]; then printamterr "${amount}"; exit 1; fi # check there is a single amount column
127
- set -o inherit_exit
+ shopt -s inherit_errexit
128
int=$(printf '%.f' "$(unquote "${amount}")")
129
if [[ ${shownum} -gt 0 ]]; then num=$(printf "%10d " "${int}"); else num=""; fi
130
if [[ ${int} -lt 0 ]]; then c="${negchar}"; col=${red}; else c="${poschar}"; col=${green}; fi
0 commit comments