summaryrefslogtreecommitdiff
path: root/util.inc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util.inc.sh')
-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 "$@"
}