diff options
author | typebrook <typebrook@gmail.com> | 2020-03-28 00:30:48 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-29 13:59:13 +0800 |
commit | ae4ab08dcd7de8969890b21834c34fe97dc06d00 (patch) | |
tree | 39d342eb807ceb85df4cb9fde7a26d47f5be3aed | |
parent | 10963dece0ddd9d45fa16f4b4a5a8421871ecd63 (diff) |
Suppress hint when STDIN is not empty
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |