mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Visually separate discrete examples
@@ -5,7 +5,8 @@
|
|||||||
```sh
|
```sh
|
||||||
cd generated_files
|
cd generated_files
|
||||||
rm -r *.c
|
rm -r *.c
|
||||||
|
```
|
||||||
|
```sh
|
||||||
func(){
|
func(){
|
||||||
cd foo
|
cd foo
|
||||||
do_something
|
do_something
|
||||||
@@ -17,7 +18,8 @@ func(){
|
|||||||
```sh
|
```sh
|
||||||
cd generated_files || exit
|
cd generated_files || exit
|
||||||
rm -r *.c
|
rm -r *.c
|
||||||
|
```
|
||||||
|
```sh
|
||||||
# For functions, you may want to use return:
|
# For functions, you may want to use return:
|
||||||
func(){
|
func(){
|
||||||
cd foo || return
|
cd foo || return
|
||||||
|
Reference in New Issue
Block a user