From ebfe7ca4e84992986603a8c10821fa5c4c16fa74 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 29 Dec 2020 17:05:30 +0100 Subject: [PATCH] Suppress output of clone and do better logging --- abra | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/abra b/abra index 115e3e1..36beb19 100755 --- a/abra +++ b/abra @@ -330,10 +330,11 @@ require_app_latest() { APP_DIR="$ABRA_DIR/apps/$APP" if [ ! -d "$APP_DIR" ]; then - warning "'$APP' not found, fetching via git.." - if ! git clone "$GIT_URL/$APP.git" "$ABRA_DIR/apps/$APP"; then - error "Could not retrieve '$APP', this app doesn't exist?" + warning "The app type '$APP' was not found, fetching via Git" + if ! git clone "$GIT_URL/$APP.git" "$ABRA_DIR/apps/$APP" > /dev/null 2>&1 ; then + error "Could not retrieve app type '$APP', this app type doesn't exist?" fi + success "Fetched app configuration via Git" fi }