From 841e4fc61a5b78300cebb79d9b5fa4ec38fb1c3d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 28 Oct 2020 18:24:28 +0100 Subject: [PATCH] Explode if can't clone the app --- abra | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/abra b/abra index 54402be4..8195c52a 100755 --- a/abra +++ b/abra @@ -435,7 +435,10 @@ sub_app_new (){ # FIXME 3wc: move to require_app_clone or something warning "'$APP' not found, fetching via git.." - git clone "$GIT_URL/$APP.git" "$ABRA_DIR/apps/$APP" + if ! git clone "$GIT_URL/$APP.git" "$ABRA_DIR/apps/$APP"; then + error "Could not retrieve '$APP', this app doesn't exist?" + fi + fi if [ -z "$DOMAIN" ]; then