Skip to content

Commit 4232f52

Browse files
committed
mk-component-set: fix nightly build failure on non-empty /etc.
See: <rust-lang/rust#144498>
1 parent 11a559c commit 4232f52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/mk-component-set.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ let
122122
}
123123
if [[ -e "$out/etc" ]]; then
124124
handleEtc "$out/etc/bash_completion.d" "$out/share/bash-completion/completions"
125-
rmdir $out/etc || { echo "Installer tries to install to /etc: $(ls $out/etc)"; exit 1; }
125+
# Remove if empty. Skip if produced `/etc/target-spec-json-schema.json`.
126+
rmdir --ignore-fail-on-non-empty $out/etc
126127
fi
127128
'';
128129

0 commit comments

Comments
 (0)