readarray!
This commit is contained in:
parent
b2cb42c371
commit
d19dc0fbb1
4
zpac
4
zpac
|
@ -13,7 +13,7 @@ echo() { printf '%s\n' "$*"; }
|
||||||
err() { echo "$*" >&2; }
|
err() { echo "$*" >&2; }
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
while read; do usage_block+=( "$REPLY" ); done <<- EOF
|
readarray usage_block <<- EOF
|
||||||
Usage: $_self [flags] <package>
|
Usage: $_self [flags] <package>
|
||||||
Flags:
|
Flags:
|
||||||
-h Show this message.
|
-h Show this message.
|
||||||
|
@ -25,7 +25,7 @@ usage() {
|
||||||
-w <dir> Set the working directory.
|
-w <dir> Set the working directory.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
printf '%s\n' "${usage_block[@]}"
|
printf '%s' "${usage_block[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
aur.search() {
|
aur.search() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user