mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 00:02:25 +00:00
Add check for one nix-build-* directory
This commit is contained in:
parent
a75b082a28
commit
a530939fe4
@ -49,6 +49,10 @@ test_custom_build_dir() {
|
|||||||
[ "$status" = "100" ]
|
[ "$status" = "100" ]
|
||||||
[[ 1 == "$(count "$customBuildDir/nix-build-"*)" ]]
|
[[ 1 == "$(count "$customBuildDir/nix-build-"*)" ]]
|
||||||
local buildDir=("$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
|
if [[ -e ${buildDir[*]}/build ]]; then
|
||||||
buildDir[0]="${buildDir[*]}/build"
|
buildDir[0]="${buildDir[*]}/build"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user