buildah: avoid empty segment in PATH

(cherry picked from commit 2a4da970ff)
This commit is contained in:
Thomas Gerbet
2026-07-25 15:01:46 +02:00
committed by github-actions[bot]
parent 0f2f05f9e3
commit f8d394a39e

View File

@@ -73,6 +73,7 @@ runCommand buildah-unwrapped.name
mkdir -p $out
ln -s ${buildah-unwrapped}/share $out/share
makeWrapper ${buildah-unwrapped}/bin/buildah $out/bin/buildah \
--set CONTAINERS_HELPER_BINARY_DIR ${helpersBin}/bin \
--prefix PATH : "${binPath}"
--set CONTAINERS_HELPER_BINARY_DIR ${helpersBin}/bin ${
lib.optionalString (binPath != "") "--prefix PATH : \"${binPath}\""
}
''