balena-io-experimental / browser

A drop-in web browser block
98 stars 75 forks source link

Fix generation of environment variable list #91

Closed kb2ma closed 2 years ago

kb2ma commented 2 years ago

The command below in src/start.sh appends an "=" to each environment variable name in the generated list:

$ env | grep -v -w '_' | awk -F: '{ st = index($0,"=");print substr($1,0,st) ","}' | tr -d "\n"
SHELL=,SESSION_MANAGER=,QT_ACCESSIBILITY=,COLORTERM=, ...

Changing the argument to awk -F removes the "=", as required by su -w

$ env | grep -v -w '_' | awk -F= '{ st = index($0,"=");print substr($1,0,st) ","}' | tr -d "\n"
SHELL,SESSION_MANAGER,QT_ACCESSIBILITY,COLORTERM, ...

Partial fix for #90

ghost commented 2 years ago

Your landr site preview has been successfully deployed to https://landr-balenablocks-repo-browser-preview-91.netlify.app

Deployed with Landr 6.35.1