netbrain / zwift

Easily zwift on linux
The Unlicense
238 stars 27 forks source link

[ readme ] escaping now breaks config-based login #90

Closed gallais closed 5 months ago

gallais commented 5 months ago
+ source /home/$USER/.config/zwift/config
++ ZWIFT_USERNAME=USER
++ ZWIFT_PASSWORD=PASS_WITH_A_SEMICOLON
/home/$USER/.config/zwift/config: line 2: PASS_AFTER_SEMICOLON: command not found

Hmm. Auto-login works without escaping the semicolon character (presumably because of ZWIFT_CONFIG_FLAG="--env-file $HOME/.config/zwift/config") but I do get noise on the command line because of the call to source. :thinking:

netbrain commented 5 months ago

Lol. Probably need to escape the special character before source. Maybe use a base64 encoding on input and output.

In any case it only is a problem for those with special chars. And probably not have any I'll effects except that pesky message on the terminal