Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Green committed Jun 20, 2023
1 parent 880d856 commit e9696e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raspberry-pi-client",
"version": "1.0.0-rc.5",
"version": "1.0.0-rc.6",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
6 changes: 3 additions & 3 deletions scripts/initialize-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const configFilePath = "../data/config.json";
function initializeConfig() {
const hasConfig = Boolean(configJson);
const message = hasConfig
? `Config env variable '${CONFIG_ENV_VAR_NAME}' exists. File will be written to disk.`
: `No value found for config env variable '${CONFIG_ENV_VAR_NAME}'. Skipping writing config file.`;
? `Config env variable '${configEnvName}' exists. File will be written to disk.`
: `No value found for config env variable '${configEnvName}'. Skipping writing config file.`;

console.log(message);
if (hasConfig) {
Expand All @@ -19,7 +19,7 @@ function initializeConfig() {
}

function saveConfig() {
const configJson = env[CONFIG_ENV_VAR_NAME];
const configJson = env[configEnvName];
fs.writeFileSync(configFilePath, configJson);
console.log(`Config file written to '${configFilePath}'`);
}
Expand Down

0 comments on commit e9696e0

Please sign in to comment.