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

etc: skip warning when target has references to /etc/static

This commit is contained in:
Daiderd Jordan 2018-01-13 18:10:48 +01:00
parent 174a36a296
commit ad3891f07a
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -52,7 +52,9 @@ in
fi
if [ -e "$l" ]; then
if [ "$(readlink $l)" != "$f" ]; then
echo "warning: not linking environment.etc.\"''${l#/etc/}\" because $l exists, skipping..." >&2
if ! grep -q /etc/static "$l"; then
echo "warning: not linking environment.etc.\"''${l#/etc/}\" because $l exists, skipping..." >&2
fi
fi
else
ln -s "$f" "$l"