From a175bde161496ac8be7392da4a375f62050adcfc Mon Sep 17 00:00:00 2001 From: b1ek Date: Tue, 13 Feb 2024 19:39:22 +1000 Subject: [PATCH] (fix) move the prevent lines before the curl command --- bricks/example.brick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/example.brick b/bricks/example.brick index 864cdd4..2319b9e 100644 --- a/bricks/example.brick +++ b/bricks/example.brick @@ -23,11 +23,11 @@ pkgs() { } install() { - sh -c "$(curl https://example.com/script.sh)" # these 2 lines are to prevent it from being installed errcho '`example` brick is not an installable brick, its for packaging reference only' exit 1 + sh -c "$(curl https://example.com/script.sh)" } uninstall() {