contrib: use less -f
in NM-log to avoid prompt for non-text input
This commit is contained in:
@@ -73,11 +73,11 @@ NM-log() {
|
|||||||
else
|
else
|
||||||
a="${1--}"
|
a="${1--}"
|
||||||
shift
|
shift
|
||||||
/usr/bin/less "$a" "$@"
|
/usr/bin/less -f "$a" "$@"
|
||||||
fi
|
fi
|
||||||
) | \
|
) | \
|
||||||
NM_LOG_GREP="$NM_LOG_GREP" NM-colorize | \
|
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
|
if [[ "$NM_not_sourced" != "" ]]; then
|
||||||
|
Reference in New Issue
Block a user