Skip to content

Commit d8cee98

Browse files
committed
detect-environment: Put ;; on separate line
Put the pattern block terminators on separate lines, in the detect_cores function, for the sake of consistency. Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent bf747ab commit d8cee98

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

build-scripts/detect-environment

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,19 +363,24 @@ detect_cores()
363363
case "$OS_FAMILY" in
364364
aix)
365365
echo "Detected OS family is aix"
366-
NUM_CORES="$(lscfg | grep -c proc)";;
366+
NUM_CORES="$(lscfg | grep -c proc)"
367+
;;
367368
solaris)
368369
echo "Detected OS family is solaris"
369-
NUM_CORES="$(psrinfo |wc -l)";;
370+
NUM_CORES="$(psrinfo |wc -l)"
371+
;;
370372
linux)
371373
echo "Detected OS family is linux"
372-
NUM_CORES="$(> /proc/cpuinfo grep -c '^processor')";;
374+
NUM_CORES="$(> /proc/cpuinfo grep -c '^processor')"
375+
;;
373376
hpux)
374377
echo "Detected OS family is hpux"
375-
NUM_CORES="$(ioscan -k -C processor | grep -c processor)";;
378+
NUM_CORES="$(ioscan -k -C processor | grep -c processor)"
379+
;;
376380
*)
377381
echo "Detected OS family is UNKNOWN, defaulting amount of CPU cores to 1"
378-
NUM_CORES=1;;
382+
NUM_CORES=1
383+
;;
379384
esac
380385

381386
# Make number of jobs one higher than core count, to account for I/O, network, etc.

0 commit comments

Comments
 (0)