Skip to content

Commit

Permalink
fix(Makefile): πŸ› do not create keyring file in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Oct 17, 2023
1 parent 107bc33 commit 25a6f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ keyring: CONTROLLER ?= ${USER}@${HOSTNAME}
keyring: ## Generate a new admin keyring [ OUT, CONTROLLER ]
$(if $(wildcard ${OUT}),$(error Local authority ${OUT} found, cannot overwrite))
@echo "{\"controller\": \"${CONTROLLER}\"}" > ${tmp}
@zenroom -z -k ${tmp} client/v1/create-keyring.zen > ${OUT}
@zenroom -z -k ${tmp} client/v1/create-keyring.zen > ${OUT} || rm ${OUT}
@rm -f ${tmp}

request: KEYRING ?= secrets/keyring.json
Expand Down

0 comments on commit 25a6f60

Please sign in to comment.