Skip to content

Commit c5819b5

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 f49dd24 commit c5819b5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

build-scripts/detect-environment

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,20 +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"
372374
NUM_CORES="$(grep -c '^processor' /proc/cpuinfo)"
373375
;;
374376
hpux)
375377
echo "Detected OS family is hpux"
376-
NUM_CORES="$(ioscan -k -C processor | grep -c processor)";;
378+
NUM_CORES="$(ioscan -k -C processor | grep -c processor)"
379+
;;
377380
*)
378381
echo "Detected OS family is UNKNOWN, defaulting amount of CPU cores to 1"
379-
NUM_CORES=1;;
382+
NUM_CORES=1
383+
;;
380384
esac
381385

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

0 commit comments

Comments
 (0)