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:
parent
174a36a296
commit
ad3891f07a
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ in
|
|||
fi
|
||||
if [ -e "$l" ]; then
|
||||
if [ "$(readlink $l)" != "$f" ]; then
|
||||
echo "[1;31mwarning: not linking environment.etc.\"''${l#/etc/}\" because $l exists, skipping...[0m" >&2
|
||||
if ! grep -q /etc/static "$l"; then
|
||||
echo "[1;31mwarning: not linking environment.etc.\"''${l#/etc/}\" because $l exists, skipping...[0m" >&2
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ln -s "$f" "$l"
|
||||
|
|
Loading…
Add table
Reference in a new issue