From 932c9dbd5489ecc0dc7cc25f73a3fd585d9a1446 Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 10 Feb 2020 15:29:57 +0800 Subject: update --- scripts/gist | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 59fbd06..291e513 100755 --- a/scripts/gist +++ b/scripts/gist @@ -37,7 +37,6 @@ # Since now a gist is a local cloned repo # It is your business to do git commit and git push -# TODO test on bats, mac and remote machine currentVersion="1.23.0" configuredClient="" @@ -50,8 +49,8 @@ auto_sync=true # automatically clone the gist repo # Shell configuration set -o pipefail -[ "$TRACE" ] && set -x -[ $(uname) == 'Darwin' ] && alias tac='tail -r' +[[ $TRACE ]] && set -x +[[ $(uname) == 'Darwin' ]] && alias tac='tail -r' trap 'rm -f "$http_data" "$tmp_file"' EXIT # This function determines which http get tool the system has installed and returns an error if there isnt one -- cgit v1.2.3-70-g09d2