mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 02:04:17 +00:00
contrib: use less -f
in NM-log to avoid prompt for non-text input
This commit is contained in:
parent
c6228a5815
commit
d15f5420c7
|
@ -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…
Reference in a new issue