Skip to content

Commit

Permalink
fix driver metadata
Browse files Browse the repository at this point in the history
`cat` was not working with `kubectl`, replaced with `tee`
  • Loading branch information
Roy Razon committed Jan 31, 2024
1 parent 5cd3e97 commit fd05dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/driver/machine-operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const writeMetadata = async (
},
}
await connection.exec(`mkdir -p "${REMOTE_DIR_BASE}" && chown "${userAndGroup.join(':')}" "${REMOTE_DIR_BASE}"`, { asRoot: true })
await connection.exec(`cat > "${REMOTE_DIR_BASE}/${driverMetadataFilename}"`, {
stdin: Buffer.from(JSON.stringify(metadata, dateReplacer)),
await connection.exec(`tee "${REMOTE_DIR_BASE}/${driverMetadataFilename}"`, {
stdin: JSON.stringify(metadata, dateReplacer),
})
}

Expand Down

0 comments on commit fd05dc3

Please sign in to comment.