mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Add check for one nix-build-* directory
This commit is contained in:
parent
a75b082a28
commit
a530939fe4
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ test_custom_build_dir() {
|
|||
[ "$status" = "100" ]
|
||||
[[ 1 == "$(count "$customBuildDir/nix-build-"*)" ]]
|
||||
local buildDir=("$customBuildDir/nix-build-"*)
|
||||
if [[ "${#buildDir[@]}" -ne 1 ]]; then
|
||||
echo "expected one nix-build-* directory, got: ${buildDir[*]}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ -e ${buildDir[*]}/build ]]; then
|
||||
buildDir[0]="${buildDir[*]}/build"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue