From cee2bb93cc35f1c42d2ac54a96b19e3eebc34f82 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan <daiderd@gmail.com> Date: Sat, 20 May 2017 14:38:32 +0200 Subject: [PATCH] applications: fix activation --- modules/system/applications.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/system/applications.nix b/modules/system/applications.nix index 4b6ae9de..d06d869a 100644 --- a/modules/system/applications.nix +++ b/modules/system/applications.nix @@ -24,10 +24,10 @@ in # Set up applications. echo "setting up ~/Applications..." >&2 - if [ -d ~/Applications ]; then - echo "warning: ~/Applications is a directory, skipping..." >&2 - else + if [ ! -e ~/Applications -o -L ~/Applications ]; then ln -sfn ${cfg.build.applications}/Applications ~/Applications + else + echo "warning: ~/Applications is a directory, skipping..." >&2 fi '';