diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/debvm-run | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/debvm-run b/bin/debvm-run index d690773..1ac2360 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -325,8 +325,10 @@ if test -n "$CPU"; then fi if test -z "$MAX_SMP" || test "$MAX_SMP" -gt 1; then NPROC=$(nproc) - test -n "$MAX_SMP" && test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP - set -- -smp "$NPROC" "$@" + if test "$NPROC" -gt 1; then + test -n "$MAX_SMP" && test "$NPROC" -gt "$MAX_SMP" && NPROC=$MAX_SMP + set -- -smp "$NPROC" "$@" + fi fi if test -n "$RNG_DEV"; then set -- -device "$RNG_DEV" "$@" |