1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

don't check knownSha256 for authorized_keys files

This commit is contained in:
sbh69840 2023-05-10 20:03:21 +05:30
parent ecb5840f6b
commit ccaa942888

View file

@ -57,6 +57,10 @@ in
if [ ! -e "$d" ]; then
mkdir -p "$d"
fi
if [ -e "$f".copy ]; then
cp "$f" "$l"
continue
fi
if [ -e "$l" ]; then
if [ "$(readlink "$l")" != "$f" ]; then
if ! grep -q /etc/static "$l"; then
@ -65,11 +69,7 @@ in
for h in ''${etcSha256Hashes["$l"]}; do
if [ "$o" = "$h" ]; then
mv "$l" "$l.orig"
if [ -e "$f".copy ]; then
cp "$f" "$l"
else
ln -s "$f" "$l"
fi
ln -s "$f" "$l"
break
else
h=
@ -83,11 +83,7 @@ in
fi
fi
else
if [ -e "$f".copy ]; then
cp "$f" "$l"
else
ln -s "$f" "$l"
fi
ln -s "$f" "$l"
fi
done