summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-21 19:01:08 +0800
committertypebrook <typebrook@gmail.com>2020-01-21 19:01:08 +0800
commitaccf85d19d4664aa1cfcb19ffe4d49fec4817e6a (patch)
treecf37fee7a972fe72cfc127ba3c13b8415231cd9f
parentf22ab8cbc48f7f1333d25146e98f3b7ea16f3ed2 (diff)
update
-rwxr-xr-xscripts/gist11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/gist b/scripts/gist
index 8805e19..8a22b22 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -277,11 +277,14 @@ _help_message() {
277 277
278_configure() { 278_configure() {
279 case "$1 $2" in 279 case "$1 $2" in
280 auto_sync*) echo -n $1= ;;& 280 auto_sync[[:space:]]*) echo -n $1 ;;&
281 *true) echo $2; shift; shift ;; 281 *true) echo =$2;;
282 *false) echo $2; shift; shift ;; 282 *false) echo =$2;;
283 folder) shift 283 folder) echo -n $1=$2 ;;
284 esac 284 esac
285 echo target $target
286 [[ $target =~ = ]] && sed -i -E "/^$1/ d" $config
287 echo $target >> $config
285} 288}
286 289
287case "$1" in 290case "$1" in