mcelog: Fix cache trigger syntax error and some whitespace cleanups The fix is the additional semicolon at the end which will result in a shell syntax error if the trigger is executed. Signed-off-by: Thomas Renninger --- triggers/cache-error-trigger | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/triggers/cache-error-trigger b/triggers/cache-error-trigger index 20f252a..d2e0107 100755 --- a/triggers/cache-error-trigger +++ b/triggers/cache-error-trigger @@ -19,16 +19,16 @@ # EXIT=0 -for i in $CPUS_AFFECTED ; do - if [ $i = 0 ] ; then - logger -s -p daemon.warn -t mcelog "Not offlining CPU 0" +for i in $CPUS_AFFECTED; do + if [ $i = 0 ]; then + logger -s -p daemon.warn -t mcelog "Not offlining CPU 0" EXIT=1 continue fi logger -s -p daemon.crit -t mcelog "Offlining CPU $i due to cache error threshold" F=$(printf "/sys/devices/system/cpu/cpu%d/online" $i) echo 0 > $F - if [ "$(< $F)" != "0" ] then + if [ "$(< $F)" != "0" ]; then logger -s -p daemon.warn -t mcelog "Offlining CPU $i failed" EXIT=1 fi