mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 18:10:21 +01:00
contrib/NM-log: don't use exec in bash functions
When sourcing the file, using exec inside NM-show-journal is a bad idea, because it replaces the calling shell.
This commit is contained in:
parent
44e71d70ea
commit
66a09b2192
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ NM-show-journal() {
|
|||
echo "error detecting NM. Is it running?"
|
||||
systemctl status NetworkManager
|
||||
else
|
||||
exec journalctl -o short-precise --since "$since" -b 0 -u NetworkManager "$@"
|
||||
journalctl -o short-precise --since "$since" -b 0 -u NetworkManager "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ NM-log() {
|
|||
fi
|
||||
) | \
|
||||
NM-colorize | \
|
||||
LESS=FRSXM exec less -R
|
||||
LESS=FRSXM less -R
|
||||
}
|
||||
|
||||
if [[ "$NM_not_sourced" != "" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue