Skip to content

Commit

Permalink
Merge pull request #91 from playground/auto-setup-4
Browse files Browse the repository at this point in the history
add -u to cp
  • Loading branch information
playground authored Nov 19, 2023
2 parents f62a453 + 2b9ffb6 commit 5cf6c65
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/common/src/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/common/src/utils.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hzn-cli",
"version": "0.7.0",
"version": "0.7.1",
"description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments",
"main": "./build/index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export class Utils {
this.copyFile(`sudo mv ${process.cwd()}/horizon /var`).then(() => {
const folders = configJson.folders;
if(existsSync(pEnv.CONFIG_CERT_PATH) && folders) {
this.copyFile(`sudo cp -ut ${pEnv.CONFIG_CERT_PATH} /var/agent-install.crt`).then(() => {
this.copyFile(`sudo cp -u ${pEnv.CONFIG_CERT_PATH} /var/agent-install.crt`).then(() => {
let arg = ''
folders.forEach((folder) => {
if(arg.length > 0) {
Expand Down

0 comments on commit 5cf6c65

Please sign in to comment.