1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Make symlink within ~/Applications if it exists instead of skipping

This commit is contained in:
Chris Hodapp 2017-06-09 14:51:59 -07:00
parent 983c465a72
commit b26b1e89c1

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
'';