Skip to content

./init.sh script adding extra return characters "^M" on daq-site computer #23

@chw3k5

Description

@chw3k5

The init.sh script is supposed to copy a fraction of the variables from the .env file into a the required format for next.js, a file called .evn.production. When this file is made on a mac (bash) or windows (git-bash) it works as expected.

However, on the daq-site computer, it add an extra ^M character to each line, sometimes at the end of the line. Sometimes at the before the last double-quote ". The is some sort of line return character.

A two hours of Google searching did not reveal the cause of this issue. No one else seems to have it.

Is it the version of bash?

Should I just pick a different interpreter with the hashbang at the top of the file?

Did I write the init.sh script in wrong way?

Ideally this script would not need to exist. However it seems that some information, specifically, the host name TELEVIEW_PUBLIC_SITE_HOST, is needed at the NEXT.js docker image build-time (see issue #21).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdeploymentDeployment environment is where this issue occurs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions