Skip to content

Commit 3366134

Browse files
committed
fix
1 parent 3cd1010 commit 3366134

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

usr/bin/modeline-show

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ modeline_show() {
5050
error_hit='false'
5151

5252
if (( ${#file_list[@]} == 0 )); then
53-
if ! [ -e '/proc/self/fd/0' ]; then
53+
if [[ -t 0 ]]; then
5454
die 1 'stdin is not open!'
5555
fi
5656
grep_exit_code='0'

0 commit comments

Comments
 (0)