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:
parent
983c465a72
commit
b26b1e89c1
1 changed files with 3 additions and 1 deletions
|
@ -26,8 +26,10 @@ in
|
||||||
|
|
||||||
if [ ! -e ~/Applications -o -L ~/Applications ]; then
|
if [ ! -e ~/Applications -o -L ~/Applications ]; then
|
||||||
ln -sfn ${cfg.build.applications}/Applications ~/Applications
|
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
|
else
|
||||||
echo "warning: ~/Applications is a directory, skipping..." >&2
|
echo "warning: ~/Applications and ~/Applications/Nix Apps are directories, skipping App linking..." >&2
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue