From db766f4aec1f1c5fbe2ef190e037d38de7be728a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 28 Oct 2020 17:32:30 +0100 Subject: [PATCH] Don't explode if you already have the context --- abra | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abra b/abra index 801ceac..ca0172b 100755 --- a/abra +++ b/abra @@ -737,7 +737,8 @@ sub_server_add() { fi docker context create "$HOST" \ - --docker "host=ssh://$USERNAME$HOST$PORT" + --docker "host=ssh://$USERNAME$HOST$PORT" \ + || true mkdir -p "$ABRA_DIR/$HOST" }