Skip to content

Commit e0b7c12

Browse files
committed
setup.sh: arithmetic conditional style
used "recommended" arithmetic conditional style
1 parent 4f8fa7a commit e0b7c12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkgs/stdenv/generic/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ export NIX_INDENT_MAKE=1
638638

639639
if [ -z "${NIX_BUILD_CORES:-}" ]; then
640640
NIX_BUILD_CORES="1"
641-
elif [ "$NIX_BUILD_CORES" -le 0 ]; then
641+
elif (( "$NIX_BUILD_CORES" <= 0 )); then
642642
NIX_BUILD_CORES=$(nproc 2>/dev/null || true)
643643
if expr >/dev/null 2>&1 "$NIX_BUILD_CORES" : "^[0-9][0-9]*$"; then
644644
:

0 commit comments

Comments
 (0)