Skip to content

Commit

Permalink
Fix --one-top-level not avail in bsd tar
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy committed Dec 17, 2024
1 parent b561977 commit 70f4086
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion foundryup/foundryup
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ main() {
ensure unzip "$tmp" -d "$FOUNDRY_VERSIONS_DIR/$FOUNDRYUP_TAG"
rm -f "$tmp"
else
ensure download "$BIN_ARCHIVE_URL" | ensure tar -xz --one-top-level="$FOUNDRY_VERSIONS_DIR/$FOUNDRYUP_TAG"
tmp="$(mktemp -d 2>/dev/null || echo ".")/foundry.tar.gz"
ensure download "$BIN_ARCHIVE_URL" "$tmp"
ensure mkdir -p $FOUNDRY_VERSIONS_DIR/$FOUNDRYUP_TAG
ensure tar -C "$FOUNDRY_VERSIONS_DIR/$FOUNDRYUP_TAG" -xvf $tmp
rm -f "$tmp"
fi

# Optionally download the manuals
Expand Down

0 comments on commit 70f4086

Please sign in to comment.