Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-04-04 12:27:02 -0400
committerDave Reisner <dreisner@archlinux.org>2018-04-04 12:27:02 -0400
commitf3c8955cd76c6a9caadc7b45fd63137769281dae (patch)
treec5b0920852971171871695e1de13848125afab3e
parentbd3f96a5171cf797bf8ba59601a1a767ed036a05 (diff)
simplify quiet_git
No need to define a whole array for passing -q
-rw-r--r--util.inc.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/util.inc.sh b/util.inc.sh
index ddd7592..7529eca 100644
--- a/util.inc.sh
+++ b/util.inc.sh
@@ -1,5 +1,5 @@
log_meta() {
- printf "$1 $2\n" "${@:3}"
+ printf "$1 $2\\n" "${@:3}"
}
log_error() {
@@ -38,9 +38,7 @@ in_array() {
}
quiet_git() {
- local q
+ [[ $ASP_GIT_QUIET ]] && set -- "$1" -q "${@:2}"
- [[ $ASP_GIT_QUIET ]] && q=('-q')
-
- command git "$1" "${q[@]}" "${@:2}"
+ command git "$@"
}