mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 21:10:08 +01:00
contrib: use less -f in NM-log to avoid prompt for non-text input
This commit is contained in:
parent
c6228a5815
commit
d15f5420c7
1 changed files with 2 additions and 2 deletions
|
|
@ -73,11 +73,11 @@ NM-log() {
|
|||
else
|
||||
a="${1--}"
|
||||
shift
|
||||
/usr/bin/less "$a" "$@"
|
||||
/usr/bin/less -f "$a" "$@"
|
||||
fi
|
||||
) | \
|
||||
NM_LOG_GREP="$NM_LOG_GREP" NM-colorize | \
|
||||
LESS=FRSXM less -R --shift=5
|
||||
LESS=FRSXM less -f -R --shift=5
|
||||
}
|
||||
|
||||
if [[ "$NM_not_sourced" != "" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue