diff options
| author | typebrook <typebrook@gmail.com> | 2020-01-22 14:55:24 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-01-22 14:55:24 +0800 |
| commit | de9f5ef163666a1ff380edea67222e8ff9ca1389 (patch) | |
| tree | 81632941a129940bb2496dd6124f2b0f8998d14d | |
| parent | 5963ecf994c1142694603a088eb62faeb2c9f089 (diff) | |
update
| -rwxr-xr-x | scripts/gist | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/gist b/scripts/gist index e83b3c2..7dfd713 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -280,13 +280,12 @@ _cases() { | |||
| 280 | [[ ${#2} -eq 40 ]] && echo token=$2 ||\ | 280 | [[ ${#2} -eq 40 ]] && echo token=$2 ||\ |
| 281 | echo Invalid token format, it is not 40 chars '\n' > /dev/tty | 281 | echo Invalid token format, it is not 40 chars '\n' > /dev/tty |
| 282 | elif [[ $1 == 'auto_sync' ]]; then | 282 | elif [[ $1 == 'auto_sync' ]]; then |
| 283 | [[ $2 == 'false' ]] && echo $1=$2 ||\ | ||
| 283 | echo $1=true | 284 | echo $1=true |
| 284 | elif [[ $1 == 'folder' ]]; then | 285 | elif [[ $1 == 'folder' ]]; then |
| 285 | echo $1=$2 | 286 | echo $1=$2 |
| 286 | elif [[ $1 == 'user' ]]; then | 287 | elif [[ $1 == 'user' ]]; then |
| 287 | echo $1=$2 | 288 | echo $1=$2 |
| 288 | else | ||
| 289 | echo $1= | ||
| 290 | fi | 289 | fi |
| 291 | } | 290 | } |
| 292 | 291 | ||