Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Handle shell-quoted environment varaibles #194

Open
alialkhalidi opened this issue Feb 17, 2021 · 0 comments
Open

Handle shell-quoted environment varaibles #194

alialkhalidi opened this issue Feb 17, 2021 · 0 comments

Comments

@alialkhalidi
Copy link

When converting string values for environment variables of type bool or numbers, startcmd fails to parse shell-quoted values. For example: when setting EDV_DATABASE_TIMEOUT="60", startcmd fails with:
Error: failed to parse timeout "60": strconv.Atoi: parsing "\"60\"": invalid syntax
making the environment variables of less use, and leaving only the option of passing command parameters for these configurables.
This can either be handle here or in https://github.com/trustbloc/edge-core/blob/main/pkg/utils/cmd/util.go

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant