diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-01-26 08:32:34 +0100 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-01-26 08:32:34 +0100 |
| commit | d553ed66c75c1482fbbf6eeb60c929b3270079b3 (patch) | |
| tree | 2b9968f9fd9e31b9bd101632d333584cac38e131 | |
| parent | 47621db62cf9ffa82624576059b6af5e54d935a5 (diff) | |
| download | rust-d553ed66c75c1482fbbf6eeb60c929b3270079b3.tar.gz rust-d553ed66c75c1482fbbf6eeb60c929b3270079b3.zip | |
shell 'case' statement don't need 'break'
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.
| -rwxr-xr-x | src/etc/local_stage0.sh | 3 |
1 files changed, 0 insertions, 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 |
