Skip to content

feat: add dkg injection script for dappnode with guide#33

Open
blockchainluffy wants to merge 1 commit intomainfrom
dkg-injection
Open

feat: add dkg injection script for dappnode with guide#33
blockchainluffy wants to merge 1 commit intomainfrom
dkg-injection

Conversation

@blockchainluffy
Copy link
Contributor

No description provided.

Copy link

@jannikluhn jannikluhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as far as I can tell, just one note that's not critical

fi

TAR_ERROR_FILE="${TMP_DIR}/tar-extract.err"
if ! tar "${TAR_WARNING_FLAGS[@]}" -xf "$BACKUP_TARBALL_PATH" -C "$TMP_DIR" 2>"$TAR_ERROR_FILE"; then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better if we extract not in into TMP_DIR, but into a subdirectory, for two reasons:

  • if extraction fails, we can delete the directory before doing the second attempt with the -J flag. Currently, the first extraction attempt might leave the directory in an undefined state
  • the check below in line 159 can check for the contents of the subdirectory. Right now it is satisfied even if only the tar-extract.err file is created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants