treewideMainProgram: set mindepth
This commit is contained in:
@@ -9,11 +9,11 @@ for FILE in $FILES_WITHOUT_MAINPROGRAM; do
|
||||
PACKAGE=$(dirname "$FILE" | sed 's|^./||')
|
||||
echo "Building: $PACKAGE"
|
||||
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build ".#$PACKAGE" --impure || continue
|
||||
NIXPKGS_ALLOW_UNFREE=1 nix build --option builders '' ".#$PACKAGE" --impure || continue
|
||||
|
||||
if [ "$(find result/bin | wc -w)" == 1 ]; then
|
||||
if [ "$(find result/bin -mindepth 1 | wc -w)" == 1 ]; then
|
||||
echo "$PACKAGE: $(ls result/bin)" >> packages.txt
|
||||
elif [ "$(find result-bin/bin | wc -w)" == 1 ]; then
|
||||
elif [ "$(find result-bin/bin -mindepth 1 | wc -w)" == 1 ]; then
|
||||
echo "$PACKAGE: $(ls result-bin/bin)" >> packages.txt
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user