diff options
author | tv <tv@krebsco.de> | 2022-12-19 14:15:40 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2022-12-19 14:16:19 +0100 |
commit | 68e845da879f2064886794da330b652d60a47796 (patch) | |
tree | ac87243de9c77b25a64a279aa6d88553fb6fe184 /tv | |
parent | 7af6c2c66845d6b9bede9cd4dbd243e8e6ca498f (diff) |
tv alacritty: don't expect $HOME/ref to exists
Diffstat (limited to 'tv')
-rw-r--r-- | tv/5pkgs/simple/alacritty-tv.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tv/5pkgs/simple/alacritty-tv.nix b/tv/5pkgs/simple/alacritty-tv.nix index 466ff27c5..d80c46cbb 100644 --- a/tv/5pkgs/simple/alacritty-tv.nix +++ b/tv/5pkgs/simple/alacritty-tv.nix @@ -70,8 +70,7 @@ pkgs.symlinkJoin { # Install stored configuration if it has changed. # This allows for both declarative updates and runtime modifications. ${pkgs.coreutils}/bin/mkdir -p "$HOME" - ref=$(${pkgs.coreutils}/bin/cat "$HOME"/ref) - if test "$ref" != ${config-file}; then + if test "$(${pkgs.coreutils}/bin/cat "$HOME"/ref)" != ${config-file}; then echo ${config-file} > "$HOME"/ref ${pkgs.coreutils}/bin/cp ${config-file} "$HOME"/.alacritty.yml fi |