buildHomeAssistantComponent: fix output dirname with manifest in repo root

This commit is contained in:
Martin Weinelt
2024-12-31 16:02:46 +01:00
parent 8bfc09287d
commit 96f930534f
@@ -32,7 +32,7 @@ home-assistant.python.pkgs.buildPythonPackage (
mkdir $out
if [[ -f ./manifest.json ]]; then
mkdir $out/custom_components
cp -R $(realpath .) $out/custom_components/
cp -R "$(realpath .)" "$out/custom_components/${domain}"
else
cp -r ./custom_components/ $out/
fi