Skip to content

Commit c5de7b9

Browse files
Simplified node command in the script
Signed-off-by: Aayush Chouhan <[email protected]>
1 parent 5b2fd04 commit c5de7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deploy/NVA_build/noobaa_init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ prepare_agent_conf() {
126126
# get AGENT_CONFIG from env var or config.js (volume mount)
127127
if [ -z ${AGENT_CONFIG} ]; then
128128
cd /root/node_modules/noobaa-core/
129-
AGENT_CONFIG=$(node -e "const config = require('./config'); console.log(config.AGENT_CONFIG || '')")
129+
AGENT_CONFIG=$(node -p 'require("config").AGENT_CONFIG || ""')
130130
fi
131131

132132
if [ -z "${AGENT_CONFIG}" ]; then

0 commit comments

Comments
 (0)