Skip to content

Commit d553ed6

Browse files
committed
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.
1 parent 47621db commit d553ed6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/etc/local_stage0.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,16 @@ case $OS in
2121
("Linux"|"FreeBSD"|"DragonFly")
2222
BIN_SUF=
2323
LIB_SUF=.so
24-
break
2524
;;
2625
("Darwin")
2726
BIN_SUF=
2827
LIB_SUF=.dylib
29-
break
3028
;;
3129
(*)
3230
BIN_SUF=.exe
3331
LIB_SUF=.dll
3432
LIB_DIR=bin
3533
LIB_PREFIX=
36-
break
3734
;;
3835
esac
3936

0 commit comments

Comments
 (0)