mk-component-set: fix nightly build failure on non-empty /etc.

See: <https://github.com/rust-lang/rust/pull/144498>
This commit is contained in:
oxalica
2025-09-15 00:20:16 -04:00
committed by oxalica
parent 11a559c0ba
commit 66792ee2c2

View File

@@ -122,7 +122,8 @@ let
}
if [[ -e "$out/etc" ]]; then
handleEtc "$out/etc/bash_completion.d" "$out/share/bash-completion/completions"
rmdir $out/etc || { echo "Installer tries to install to /etc: $(ls $out/etc)"; exit 1; }
# Remove if empty. Skip if produced `/etc/target-spec-json-schema.json`.
rmdir --ignore-fail-on-non-empty $out/etc
fi
'';