Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Moving assets in env-init.sh is not longer working #302

@nicolethoen

Description

@nicolethoen

Originally, my env-init.sh file included the following lines:

mkdir ~/tutorial/src/components
curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/checkboxSelect.js > ~/tutorial/src/components/checkboxSelect.js
curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/input.js > ~/tutorial/src/components/input.js
curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/kebab.js > ~/tutorial/src/components/kebab.js
curl -L https://raw.githubusercontent.com/nicolethoen/training-scenarios/master/react-components/toolbar-filter/assets/table.js > ~/tutorial/src/components/table.js

This no longer works.
Instead, I was able to get it to work by adding these lines to my index.json file:

"assets": {
     "client": [
        {
          "file": "checkboxSelect.js", "target": "/root/src/components/", "chmod": "+x"
        },
        {
          "file": "input.js", "target": "/root/src/components/", "chmod": "+x"
        },
        {
          "file": "kebab.js", "target": "/root/src/components/", "chmod": "+x"
        },
        {
          "file": "table.js", "target": "/root/src/components/", "chmod": "+x"
        }
     ]
}

This may be intended, but in case it's not I'm opening an issue. Mine was not the only module that used env-init.sh to move assets to the right directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions