mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2218 (markdown)
@@ -29,7 +29,7 @@ Function definitions are much like variable assignments, and define a name at th
|
|||||||
|
|
||||||
This is especially apparent when defining functions conditionally:
|
This is especially apparent when defining functions conditionally:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
case "$(uname -s)" in
|
case "$(uname -s)" in
|
||||||
Linux) hi() { echo "Hello from Linux"; } ;;
|
Linux) hi() { echo "Hello from Linux"; } ;;
|
||||||
Darwin) hi() { echo "Hello from macOS"; } ;;
|
Darwin) hi() { echo "Hello from macOS"; } ;;
|
||||||
|
Reference in New Issue
Block a user