1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 02:37:09 +00:00

Merge pull request #31 from clhodapp/nix-apps-dir

Make symlink within ~/Applications if it exists instead of skipping
This commit is contained in:
Daiderd Jordan 2017-07-24 22:21:00 +02:00 committed by GitHub
commit 40eb1292aa

View file

@ -26,8 +26,10 @@ in
if [ ! -e ~/Applications -o -L ~/Applications ]; then
ln -sfn ${cfg.build.applications}/Applications ~/Applications
elif [ ! -e ~/Applications/Nix\ Apps -o -L ~/Applications/Nix\ Apps ]; then
ln -sfn ${cfg.build.applications}/Applications ~/Applications/Nix\ Apps
else
echo "warning: ~/Applications is a directory, skipping..." >&2
echo "warning: ~/Applications and ~/Applications/Nix Apps are directories, skipping App linking..." >&2
fi
'';