From d553ed66c75c1482fbbf6eeb60c929b3270079b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Mon, 26 Jan 2015 08:32:34 +0100 Subject: [PATCH] shell 'case' statement don't need 'break' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the syntax of 'case' is: `case word in [[(] pattern [| pattern] ...) list ;; ] ... esac` `list` don't have to issue `break`. `break` is normally used to exit a `for`, `until` or `while` loop. --- src/etc/local_stage0.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/etc/local_stage0.sh b/src/etc/local_stage0.sh index 56ebd4f140f..41dea2eeff4 100755 --- a/src/etc/local_stage0.sh +++ b/src/etc/local_stage0.sh @@ -21,19 +21,16 @@ case $OS in ("Linux"|"FreeBSD"|"DragonFly") BIN_SUF= LIB_SUF=.so - break ;; ("Darwin") BIN_SUF= LIB_SUF=.dylib - break ;; (*) BIN_SUF=.exe LIB_SUF=.dll LIB_DIR=bin LIB_PREFIX= - break ;; esac