diff options
| author | typebrook <typebrook@gmail.com> | 2020-02-10 15:29:57 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-02-10 15:29:57 +0800 |
| commit | 932c9dbd5489ecc0dc7cc25f73a3fd585d9a1446 (patch) | |
| tree | 8671e13ceb209919bcd1bee5b047c6938f55e127 /scripts/gist | |
| parent | 36812b1ee6b3cdb3107763c955d1f0c42b06c8fd (diff) | |
update
Diffstat (limited to 'scripts/gist')
| -rwxr-xr-x | scripts/gist | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/gist b/scripts/gist index 59fbd06..291e513 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -37,7 +37,6 @@ | |||
| 37 | # Since now a gist is a local cloned repo | 37 | # Since now a gist is a local cloned repo |
| 38 | # It is your business to do git commit and git push | 38 | # It is your business to do git commit and git push |
| 39 | 39 | ||
| 40 | # TODO test on bats, mac and remote machine | ||
| 41 | currentVersion="1.23.0" | 40 | currentVersion="1.23.0" |
| 42 | configuredClient="" | 41 | configuredClient="" |
| 43 | 42 | ||
| @@ -50,8 +49,8 @@ auto_sync=true # automatically clone the gist repo | |||
| 50 | 49 | ||
| 51 | # Shell configuration | 50 | # Shell configuration |
| 52 | set -o pipefail | 51 | set -o pipefail |
| 53 | [ "$TRACE" ] && set -x | 52 | [[ $TRACE ]] && set -x |
| 54 | [ $(uname) == 'Darwin' ] && alias tac='tail -r' | 53 | [[ $(uname) == 'Darwin' ]] && alias tac='tail -r' |
| 55 | trap 'rm -f "$http_data" "$tmp_file"' EXIT | 54 | trap 'rm -f "$http_data" "$tmp_file"' EXIT |
| 56 | 55 | ||
| 57 | # This function determines which http get tool the system has installed and returns an error if there isnt one | 56 | # This function determines which http get tool the system has installed and returns an error if there isnt one |