aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-12-14 22:03:46 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-12-14 22:03:46 +0800
commite3e1bcb671e61bf39d9272f309bbc1716fe14081 (patch)
treee0938fe7a11cdbe3f07b23827198650fb1af63e8
parent0a98c225ecfe5d9aeb78f4dddbe6110c87efd94b (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-xgist1
1 files changed, 1 insertions, 0 deletions
diff --git a/gist b/gist
index c38d5b8..82c390e 100755
--- a/gist
+++ b/gist
@@ -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