aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-03-28 00:30:48 +0800
committertypebrook <typebrook@gmail.com>2020-03-29 13:59:13 +0800
commitae4ab08dcd7de8969890b21834c34fe97dc06d00 (patch)
tree39d342eb807ceb85df4cb9fde7a26d47f5be3aed
parent10963dece0ddd9d45fa16f4b4a5a8421871ecd63 (diff)
Suppress hint when STDIN is not empty
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index cf09f6f..b1bfda9 100755
--- a/gist
+++ b/gist
@@ -318,7 +318,7 @@ _show_list() {
318 local pinned_tags=( $pin ) 318 local pinned_tags=( $pin )
319 echo 319 echo
320 echo Pinned tags: "${pinned_tags[*]/#/#} " 320 echo Pinned tags: "${pinned_tags[*]/#/#} "
321 elif [[ $hint == 'true' ]]; then 321 elif [[ -z $INPUT && $hint == 'true' ]]; then
322 echo 322 echo
323 echo 'Run "gist fetch" to keep gists up to date, or "gist help" for more details' > /dev/tty 323 echo 'Run "gist fetch" to keep gists up to date, or "gist help" for more details' > /dev/tty
324 fi 324 fi