mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
initctl: don't warn on missing env file if it's optional
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
6106574e13
commit
b080b970b7
1 file changed
+1
-1
+1
-1
@@ -578,7 +578,7 @@ static char *svc_environ(svc_t *svc, char *buf, size_t len)
|
|||||||
{
|
{
|
||||||
int bold = missing(svc);
|
int bold = missing(svc);
|
||||||
|
|
||||||
if (plain || svc_checkenv(svc))
|
if (plain || svc_checkenv(svc) || svc->env[0] == '-')
|
||||||
bold = 0;
|
bold = 0;
|
||||||
|
|
||||||
strlcpy(buf, bold ? "\e[1m" : "", len);
|
strlcpy(buf, bold ? "\e[1m" : "", len);
|
||||||
|
|||||||
Reference in new issue
Block a user