]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/empty-to-root.cocci
firstboot: Check if the given shell exists
[thirdparty/systemd.git] / coccinelle / empty-to-root.cocci
1 @@
2 expression s;
3 @@
4 - if (empty_or_root(s))
5 - s = "/";
6 + s = empty_to_root(s);
7 @@
8 expression s;
9 @@
10 - (empty_or_root(s) ? "/" : s)
11 + empty_to_root(s)