diff options
author | typebrook <typebrook@gmail.com> | 2020-01-22 15:18:17 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-22 15:18:17 +0800 |
commit | e3086b001d7a8c1cefa947c0ea1a092e9cecfe6f (patch) | |
tree | 07e310c0d7ccf786d133e834450e91b35c2e08ee /scripts | |
parent | de9f5ef163666a1ff380edea67222e8ff9ca1389 (diff) |
update
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gist | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index 7dfd713..104b23f 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -294,7 +294,7 @@ _configure() { | |||
294 | [[ -z "$@" ]] && (vim $config) && exit 0 | 294 | [[ -z "$@" ]] && (vim $config) && exit 0 |
295 | target=$(_cases "$@") | 295 | target=$(_cases "$@") |
296 | 296 | ||
297 | [[ -n $target ]] && sed -i "/^$1=/ d" $config && echo $target >> $config | 297 | [[ "$target" =~ [^=]$ ]] && sed -i "/^$1=/ d" $config && echo $target >> $config |
298 | cat $config | 298 | cat $config |
299 | } | 299 | } |
300 | 300 | ||