diff options
| -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 | ||