1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

files: be less verbose when linking a directory

This commit is contained in:
Robert Helgesson 2017-10-29 01:21:40 +02:00
parent 35775b3bc5
commit a4c0fead1f
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -226,8 +226,8 @@ in
fi
if [ -d "${v.source}" ]; then
mkdir -pv "$(dirname "$out/${v.target}")"
ln -sv "${v.source}" "$target"
mkdir -p "$(dirname "$out/${v.target}")"
ln -s "${v.source}" "$target"
else
install -D -m${v.mode} "${v.source}" "$target"
fi