mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36: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" ]
|
[ "$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 a new issue