reaktor2: quote state_file in hledger
This commit is contained in:
parent
12b54dce4c
commit
8534fe4290
@ -28,7 +28,7 @@ let
|
|||||||
amt=$2
|
amt=$2
|
||||||
unit=$3
|
unit=$3
|
||||||
printf '%s\n %s %d %s\n %s %d %s\n' "$(date -Id)" "$tonick" "$amt" "$unit" "$_from" "$(expr 0 - "''${amt#+}")" "$unit" >> $state_file
|
printf '%s\n %s %d %s\n %s %d %s\n' "$(date -Id)" "$tonick" "$amt" "$unit" "$_from" "$(expr 0 - "''${amt#+}")" "$unit" >> $state_file
|
||||||
${pkgs.hledger}/bin/hledger -f $state_file bal -N -O csv \
|
${pkgs.hledger}/bin/hledger -f "$state_file" bal -N -O csv \
|
||||||
| ${pkgs.coreutils}/bin/tail +2 \
|
| ${pkgs.coreutils}/bin/tail +2 \
|
||||||
| ${pkgs.miller}/bin/mlr --icsv --opprint cat \
|
| ${pkgs.miller}/bin/mlr --icsv --opprint cat \
|
||||||
| ${pkgs.gnugrep}/bin/grep "$_from"
|
| ${pkgs.gnugrep}/bin/grep "$_from"
|
||||||
|
Loading…
Reference in New Issue
Block a user