summaryrefslogtreecommitdiffstats
path: root/tv
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-12-19 14:15:40 +0100
committertv <tv@krebsco.de>2022-12-19 14:16:19 +0100
commit948343e45996a2d6d107012de83bc54ba2e3e348 (patch)
tree396ecc225ad510e5d3d836708a4cdd1566a72237 /tv
parentaa1e058ba6e8c3e701a2503d65ddb3c83d5c4f47 (diff)
tv alacritty: don't expect $HOME/ref to exists
Diffstat (limited to 'tv')
-rw-r--r--tv/5pkgs/simple/alacritty-tv.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/tv/5pkgs/simple/alacritty-tv.nix b/tv/5pkgs/simple/alacritty-tv.nix
index 466ff27..d80c46c 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