diff --git a/hosts/common/programs/zsh/default.nix b/hosts/common/programs/zsh/default.nix index d691c0295..d98981413 100644 --- a/hosts/common/programs/zsh/default.nix +++ b/hosts/common/programs/zsh/default.nix @@ -168,7 +168,7 @@ in } function deref() { # convert a symlink into a plain file of the same content - if [ -L "$1" && -f "$1" ]; then + if [ -L "$1" ] && [ -f "$1" ]; then cp --dereference "$1" "$1.deref" mv -f "$1.deref" "$1" fi