misc: cleanup
This commit is contained in:
@@ -605,7 +605,7 @@ blue
|
|||||||
```sh
|
```sh
|
||||||
random_array_element() {
|
random_array_element() {
|
||||||
# Usage: random_array_element "array"
|
# Usage: random_array_element "array"
|
||||||
arr=("$@")
|
local arr=("$@")
|
||||||
printf '%s\n' "${arr[RANDOM % $#]}"
|
printf '%s\n' "${arr[RANDOM % $#]}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -1570,7 +1570,9 @@ os="$_"
|
|||||||
I was surprised to find out `sleep` is an external command and isn't a
|
I was surprised to find out `sleep` is an external command and isn't a
|
||||||
built-in.
|
built-in.
|
||||||
|
|
||||||
**Example Funcrion:**
|
**CAVEAT:** Requires `bash` 4+
|
||||||
|
|
||||||
|
**Example Function:**
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
read_sleep() {
|
read_sleep() {
|
||||||
|
|||||||
Reference in New Issue
Block a user