You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bin/run-local-monitor.sh: Avoid to include quote in rootfs variable (#524)
From
https://www.freedesktop.org/software/systemd/man/latest/os-release.html
the format of /etc/os-release file is shell variable like to support
sourced in a shell script. So, that is the best method to parse the
file.
While the original method may include quote in the result variable,
for example, for
$ cat /etc/os-release
...
ID="mydist"
...
we will get rootfs="mydist" with the original method, while we will
get rootfs=mydist with shell source method.
So, use the shell source method to avoid the issue.
Signed-off-by: Huang Ying <[email protected]>
Co-authored-by: Huang Ying <[email protected]>
0 commit comments