Explode if can't clone the app

This commit is contained in:
Luke Murphy 2020-10-28 18:24:28 +01:00
parent c1d12eacc5
commit 841e4fc61a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

5
abra
View File

@ -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