From f3c8955cd76c6a9caadc7b45fd63137769281dae Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 4 Apr 2018 12:27:02 -0400 Subject: simplify quiet_git No need to define a whole array for passing -q --- util.inc.sh | 8 +++----- 1 file 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 "$@" } -- cgit v1.2.3-70-g09d2