Skip to content

Commit

Permalink
shell 'case' statement don't need 'break'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
semarie committed Jan 26, 2015
1 parent 47621db commit d553ed6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/etc/local_stage0.sh
Expand Up @@ -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

Expand Down

0 comments on commit d553ed6

Please sign in to comment.