(fix) move the prevent lines before the curl command
This commit is contained in:
parent
0f631c5db4
commit
a175bde161
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue