-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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).