diff options
author | typebrook <typebrook@gmail.com> | 2020-01-21 19:17:30 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-21 19:17:30 +0800 |
commit | c3a71fb3d2f34c196a22fe41294a08326a592df3 (patch) | |
tree | 48c5acd1d6f6950d9a59b9611d4e4a2488a546eb /scripts | |
parent | accf85d19d4664aa1cfcb19ffe4d49fec4817e6a (diff) |
update
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gist | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/gist b/scripts/gist index 8a22b22..9654a49 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -281,10 +281,8 @@ _configure() { | |||
281 | *true) echo =$2;; | 281 | *true) echo =$2;; |
282 | *false) echo =$2;; | 282 | *false) echo =$2;; |
283 | folder) echo -n $1=$2 ;; | 283 | folder) echo -n $1=$2 ;; |
284 | esac | 284 | esac >> $config |
285 | echo target $target | 285 | sed -i "$ q; /^$1=/ d" $config |
286 | [[ $target =~ = ]] && sed -i -E "/^$1/ d" $config | ||
287 | echo $target >> $config | ||
288 | } | 286 | } |
289 | 287 | ||
290 | case "$1" in | 288 | case "$1" in |