tv alacritty: don't expect $HOME/ref to exists
This commit is contained in:
parent
7af6c2c668
commit
68e845da87
|
@ -70,8 +70,7 @@ pkgs.symlinkJoin {
|
||||||
# Install stored configuration if it has changed.
|
# Install stored configuration if it has changed.
|
||||||
# This allows for both declarative updates and runtime modifications.
|
# This allows for both declarative updates and runtime modifications.
|
||||||
${pkgs.coreutils}/bin/mkdir -p "$HOME"
|
${pkgs.coreutils}/bin/mkdir -p "$HOME"
|
||||||
ref=$(${pkgs.coreutils}/bin/cat "$HOME"/ref)
|
if test "$(${pkgs.coreutils}/bin/cat "$HOME"/ref)" != ${config-file}; then
|
||||||
if test "$ref" != ${config-file}; then
|
|
||||||
echo ${config-file} > "$HOME"/ref
|
echo ${config-file} > "$HOME"/ref
|
||||||
${pkgs.coreutils}/bin/cp ${config-file} "$HOME"/.alacritty.yml
|
${pkgs.coreutils}/bin/cp ${config-file} "$HOME"/.alacritty.yml
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue