summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-07-30 17:17:06 +0200
committerlassulus <git@lassul.us>2023-07-30 17:17:06 +0200
commit8534fe4290f9c79d6b19f649964940c1408ece71 (patch)
tree8c5a9da138b31e4c8429d40b5d70df93ded08795
parent12b54dce4c37df5e8ae25d1776ace2669c51cf34 (diff)
reaktor2: quote state_file in hledger
-rw-r--r--krebs/2configs/reaktor2.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix
index 95ef2f8ae..8837f0aa5 100644
--- a/krebs/2configs/reaktor2.nix
+++ b/krebs/2configs/reaktor2.nix
@@ -28,7 +28,7 @@ let
amt=$2
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
- ${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.miller}/bin/mlr --icsv --opprint cat \
| ${pkgs.gnugrep}/bin/grep "$_from"