diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-14 22:03:46 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-14 22:03:46 +0800 |
| commit | e3e1bcb671e61bf39d9272f309bbc1716fe14081 (patch) | |
| tree | e0938fe7a11cdbe3f07b23827198650fb1af63e8 | |
| parent | 0a98c225ecfe5d9aeb78f4dddbe6110c87efd94b (diff) | |
Fix logic error after validating config file
When calling _validate_config(), we might use prompt to get 'user' and
'token' value. And they should be fed into variables. Or
_reformat_config() will miss them.
| -rwxr-xr-x | gist | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -166,6 +166,7 @@ _configure() { | |||
| 166 | value="'$2'" | 166 | value="'$2'" |
| 167 | esac | 167 | esac |
| 168 | 168 | ||
| 169 | eval $key="$value" | ||
| 169 | echo $key="$value" >>$CONFIG | 170 | echo $key="$value" >>$CONFIG |
| 170 | } | 171 | } |
| 171 | 172 | ||